public void ShowMinorLabels(CSAxisSide preferredLabelSide, Altaxo.Main.Properties.IReadOnlyPropertyBag context) { if (_minorLabelStyle == null) { MinorLabelStyle = new AxisLabelStyle(preferredLabelSide, context) { CachedAxisInformation = _cachedAxisInfo } } ; }
public void ShowMajorLabels(Altaxo.Main.Properties.IReadOnlyPropertyBag context) { if (_majorLabelStyle == null) { MajorLabelStyle = new AxisLabelStyle(context) { CachedAxisInformation = _cachedAxisInfo } } ; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { AxisLabelStyle s = null != o ? (AxisLabelStyle)o : new AxisLabelStyle(info); s._font = (FontX3D)info.GetValue("Font", s); s._brush = (IMaterial)info.GetValue("Brush", s); s.BackgroundStyle = (Background.IBackgroundStyle)info.GetValue("Background", s); s._automaticRotationShift = info.GetBoolean("AutoAlignment"); s._alignmentX = (Alignment)info.GetEnum("AlignmentX", typeof(Alignment)); s._alignmentY = (Alignment)info.GetEnum("AlignmentY", typeof(Alignment)); s._alignmentZ = (Alignment)info.GetEnum("AlignmentZ", typeof(Alignment)); s._rotationX = info.GetDouble("RotationX"); s._rotationY = info.GetDouble("RotationY"); s._rotationZ = info.GetDouble("RotationZ"); s._offsetX = info.GetDouble("OffsetX"); s._offsetY = info.GetDouble("OffsetY"); s._offsetZ = info.GetDouble("OffsetZ"); s._suppressedLabels = (SuppressedTicks)info.GetValue("SuppressedLabels", s); if (s._suppressedLabels != null) { s._suppressedLabels.ParentObject = s; } else { s._suppressedLabels = new SuppressedTicks() { ParentObject = s } }; s._labelFormatting = (ILabelFormatting)info.GetValue("LabelFormat", s); s._labelFormatting.ParentObject = s; s._labelSide = info.GetNullableEnum <CSAxisSide>("LabelSide"); return(s); } }
public void ShowMinorLabels(CSAxisSide preferredLabelSide, Altaxo.Main.Properties.IReadOnlyPropertyBag context) { if (_minorLabelStyle == null) MinorLabelStyle = new AxisLabelStyle(preferredLabelSide, context) { CachedAxisInformation = _cachedAxisInfo }; }
public void ShowMajorLabels(Altaxo.Main.Properties.IReadOnlyPropertyBag context) { if (_majorLabelStyle == null) MajorLabelStyle = new AxisLabelStyle(context) { CachedAxisInformation = _cachedAxisInfo }; }
public AxisLabelStyle(AxisLabelStyle from) { CopyFrom(from); }