Beispiel #1
0
        public object Clone()
        {
            var res = new AxisStyle();

            res.CopyFrom(this);
            return(res);
        }
Beispiel #2
0
 public void CopyWithoutIdFrom(AxisStyle from)
 {
     TickSpacing     = from._customTickSpacing == null ? null : (TickSpacing)from._customTickSpacing.Clone();
     AxisLineStyle   = from._axisLineStyle == null ? null : (AxisLineStyle)from._axisLineStyle.Clone();
     MajorLabelStyle = from._majorLabelStyle == null ? null : (AxisLabelStyle)from._majorLabelStyle.Clone();
     MinorLabelStyle = from._minorLabelStyle == null ? null : (AxisLabelStyle)from._minorLabelStyle.Clone();
     Title           = from._axisTitle == null ? null : (TextGraphic)from._axisTitle.Clone();
 }
Beispiel #3
0
            protected virtual AxisStyle SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                AxisStyle s = null != o ? (AxisStyle)o : new AxisStyle();

                // Styles
                s._styleID        = (CSLineID)info.GetValue("StyleID", s);
                s.TickSpacing     = (TickSpacing)info.GetValue("TickSpacing", s);
                s.AxisLineStyle   = (AxisLineStyle)info.GetValue("AxisStyle", s);
                s.MajorLabelStyle = (AxisLabelStyle)info.GetValue("MajorLabelStyle", s);
                s.MinorLabelStyle = (AxisLabelStyle)info.GetValue("MinorLabelStyle", s);
                s.Title           = (TextGraphic)info.GetValue("AxisTitle", s);

                return(s);
            }
Beispiel #4
0
		public object Clone()
		{
			AxisStyle res = new AxisStyle();
			res.CopyFrom(this);
			return res;
		}
Beispiel #5
0
		public void CopyWithoutIdFrom(AxisStyle from)
		{
			this.TickSpacing = from._customTickSpacing == null ? null : (TickSpacing)from._customTickSpacing.Clone();
			this.AxisLineStyle = from._axisLineStyle == null ? null : (AxisLineStyle)from._axisLineStyle.Clone();
			this.MajorLabelStyle = from._majorLabelStyle == null ? null : (AxisLabelStyle)from._majorLabelStyle.Clone();
			this.MinorLabelStyle = from._minorLabelStyle == null ? null : (AxisLabelStyle)from._minorLabelStyle.Clone();
			this.Title = from._axisTitle == null ? null : (TextGraphic)from._axisTitle.Clone();
		}
		private IMVCANController CreateAxisStyleController(AxisStyle doc, UseDocument useDocumentCopy)
		{
			var result = (AxisStyleController)Current.Gui.GetControllerAndControl(new object[] { doc }, typeof(AxisStyleController), useDocumentCopy);
			result.MadeDirty += EhAxisStyleControllerDirty;
			return result;
		}
		private void OnAxisStyleCreation(AxisStyle result)
		{
			MajorLabelCondController.AnnounceEnabledChanged(result.AreMajorLabelsEnabled);
			MinorLabelCondController.AnnounceEnabledChanged(result.AreMinorLabelsEnabled);
		}
Beispiel #8
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                AxisStyle s = SDeserialize(o, info, parent);

                return(s);
            }