示例#1
0
 public void ShowMinorLabels(CSAxisSide preferredLabelSide, Altaxo.Main.Properties.IReadOnlyPropertyBag context)
 {
     if (_minorLabelStyle == null)
     {
         MinorLabelStyle = new AxisLabelStyle(preferredLabelSide, context)
         {
             CachedAxisInformation = _cachedAxisInfo
         }
     }
     ;
 }
示例#2
0
 public void ShowMajorLabels(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
 {
     if (_majorLabelStyle == null)
     {
         MajorLabelStyle = new AxisLabelStyle(context)
         {
             CachedAxisInformation = _cachedAxisInfo
         }
     }
     ;
 }
示例#3
0
            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);
            }
        }
示例#4
0
		public void ShowMinorLabels(CSAxisSide preferredLabelSide, Altaxo.Main.Properties.IReadOnlyPropertyBag context)
		{
			if (_minorLabelStyle == null)
				MinorLabelStyle = new AxisLabelStyle(preferredLabelSide, context) { CachedAxisInformation = _cachedAxisInfo };
		}
示例#5
0
		public void ShowMajorLabels(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
		{
			if (_majorLabelStyle == null)
				MajorLabelStyle = new AxisLabelStyle(context) { CachedAxisInformation = _cachedAxisInfo };
		}
示例#6
0
 public AxisLabelStyle(AxisLabelStyle from)
 {
     CopyFrom(from);
 }
示例#7
0
		public AxisLabelStyle(AxisLabelStyle from)
		{
			CopyFrom(from);
		}