Ejemplo n.º 1
0
        public AxisLabelStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            if (null == context)
            {
                context = PropertyExtensions.GetPropertyContextOfProject();
            }

            _font = context.GetValue(GraphDocument.PropertyKeyDefaultFont);
            var foreColor = context.GetValue(GraphDocument.PropertyKeyDefaultForeColor);

            _brush = new BrushX(foreColor)
            {
                ParentObject = this
            };
            _automaticRotationShift = true;
            _suppressedLabels       = new SuppressedTicks()
            {
                ParentObject = this
            };
            _labelFormatting = new Gdi.LabelFormatting.NumericLabelFormattingAuto()
            {
                ParentObject = this
            };
            SetStringFormat();
        }
Ejemplo n.º 2
0
        public AxisLabelStyle(CSAxisSide?labelSide, Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            if (null == context)
            {
                context = PropertyExtensions.GetPropertyContextOfProject();
            }

            _labelSide = labelSide;

            _font = GraphDocument.GetDefaultFont(context);
            var foreColor = GraphDocument.GetDefaultForeColor(context);

            _brush = Materials.GetSolidMaterial(foreColor);

            _automaticRotationShift = true;
            _rotationX        = 90;
            _suppressedLabels = new SuppressedTicks()
            {
                ParentObject = this
            };
            _labelFormatting = new LabelFormatting.NumericLabelFormattingAuto()
            {
                ParentObject = this
            };
        }
Ejemplo n.º 3
0
		public AxisLabelStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
		{
			if (null == context)
				context = PropertyExtensions.GetPropertyContextOfProject();

			_font = context.GetValue(GraphDocument.PropertyKeyDefaultFont);
			var foreColor = context.GetValue(GraphDocument.PropertyKeyDefaultForeColor);

			_brush = new BrushX(foreColor) { ParentObject = this };
			_automaticRotationShift = true;
			_suppressedLabels = new SuppressedTicks() { ParentObject = this };
			_labelFormatting = new Gdi.LabelFormatting.NumericLabelFormattingAuto() { ParentObject = this };
			SetStringFormat();
		}
Ejemplo n.º 4
0
		public LinearTickSpacing()
		{
			_majorTicks = new List<double>();
			_minorTicks = new List<double>();
			_suppressedMajorTicks = new SuppressedTicks() { ParentObject = this };
			_suppressedMinorTicks = new SuppressedTicks() { ParentObject = this };
			_additionalMajorTicks = new AdditionalTicks() { ParentObject = this };
			_additionalMinorTicks = new AdditionalTicks() { ParentObject = this };
		}
Ejemplo n.º 5
0
		public AxisLabelStyle(CSAxisSide? labelSide, Altaxo.Main.Properties.IReadOnlyPropertyBag context)
		{
			if (null == context)
				context = PropertyExtensions.GetPropertyContextOfProject();

			_labelSide = labelSide;

			_font = GraphDocument.GetDefaultFont(context);
			var foreColor = GraphDocument.GetDefaultForeColor(context);

			_brush = Materials.GetSolidMaterial(foreColor);

			_automaticRotationShift = true;
			_rotationX = 90;
			_suppressedLabels = new SuppressedTicks() { ParentObject = this };
			_labelFormatting = new LabelFormatting.NumericLabelFormattingAuto() { ParentObject = this };
		}