Beispiel #1
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                DateTimeScale s = SDeserialize(o, info, parent);

                OnAfterDeserialization(s);
                return(s);
            }
Beispiel #2
0
            protected virtual DateTimeScale SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                DateTimeScale s = null != o ? (DateTimeScale)o : new DateTimeScale();

                s._axisOrg = info.GetDateTime("Org");
                s._axisEnd = info.GetDateTime("End");
                var      spanUnit = (Unit)info.GetEnum("MajorSpanUnit", typeof(Unit));
                TimeSpan span     = info.GetTimeSpan("MajorSpanValue");

                s._majorSpan  = new SpanCompound(spanUnit, span);
                s._minorTicks = info.GetInt32("MinorTicks");
                s.InternalSetDataBounds((FiniteDateTimeBoundaries)info.GetValue("Bounds", s));
                s.InternalSetRescaling((DateTimeScaleRescaleConditions)info.GetValue("Rescaling", s));

                return(s);
            }
Beispiel #3
0
        public void CopyFrom(DateTimeScale from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            IsLinked = from.IsLinked;

            _axisOrg    = from._axisOrg;
            _axisEnd    = from._axisEnd;
            _majorSpan  = from._majorSpan;
            _minorTicks = from._minorTicks;

            InternalSetDataBounds((FiniteDateTimeBoundaries)from._dataBounds.Clone());
            InternalSetRescaling((DateTimeScaleRescaleConditions)from._rescaling.Clone());
        }
Beispiel #4
0
 public virtual void OnAfterDeserialization(DateTimeScale s)
 {
 }
Beispiel #5
0
 public DateTimeScale(DateTimeScale from)
 {
     CopyFrom(from);
 }
Beispiel #6
0
			public virtual void OnAfterDeserialization(DateTimeScale s)
			{
			}
Beispiel #7
0
		public DateTimeScale(DateTimeScale from)
		{
			CopyFrom(from);
		}
Beispiel #8
0
		public void CopyFrom(DateTimeScale from)
		{
			if (object.ReferenceEquals(this, from))
				return;

			this.IsLinked = from.IsLinked;

			this._axisOrg = from._axisOrg;
			this._axisEnd = from._axisEnd;
			this._majorSpan = from._majorSpan;
			this._minorTicks = from._minorTicks;

			this.InternalSetDataBounds((FiniteDateTimeBoundaries)from._dataBounds.Clone());
			this.InternalSetRescaling((DateTimeScaleRescaleConditions)from._rescaling.Clone());
		}