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(); }
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 }; }
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(); }
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 }; }
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 }; }