Ejemplo n.º 1
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                TextScale s = SDeserialize(o, info, parent);

                OnAfterDeserialization(s);
                return(s);
            }
Ejemplo n.º 2
0
        public override object Clone()
        {
            var result = new TextScale();

            result.CopyFrom(this);
            return(result);
        }
Ejemplo n.º 3
0
            protected virtual TextScale SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                TextScale s = null != o ? (TextScale)o : new TextScale();

                s.InternalSetDataBounds((TextBoundaries)info.GetValue("Bounds", s));
                s.InternalSetRescaling((NumericScaleRescaleConditions)info.GetValue("Rescaling", s));
                s.ProcessDataBounds();

                return(s);
            }
Ejemplo n.º 4
0
        private void CopyFrom(TextScale from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            _dataBounds = (TextBoundaries)from._dataBounds.Clone();
            _dataBounds.ParentObject = this;

            _rescaling = from._rescaling == null ? null : (NumericScaleRescaleConditions)from._rescaling.Clone();
            _rescaling.ParentObject = this;

            _cachedAxisOrg       = from._cachedAxisOrg;
            _cachedAxisEnd       = from._cachedAxisEnd;
            _cachedAxisSpan      = from._cachedAxisSpan;
            _cachedOneByAxisSpan = from._cachedOneByAxisSpan;
        }
Ejemplo n.º 5
0
 public virtual void OnAfterDeserialization(TextScale s)
 {
 }
Ejemplo n.º 6
0
 public TextScale(TextScale from)
 {
     CopyFrom(from);
 }
Ejemplo n.º 7
0
		public TextScale(TextScale from)
		{
			CopyFrom(from);
		}
Ejemplo n.º 8
0
			public virtual void OnAfterDeserialization(TextScale s)
			{
			}
Ejemplo n.º 9
0
		public override object Clone()
		{
			TextScale result = new TextScale();
			result.CopyFrom(this);
			return result;
		}
Ejemplo n.º 10
0
		private void CopyFrom(TextScale from)
		{
			if (object.ReferenceEquals(this, from))
				return;

			_dataBounds = (TextBoundaries)from._dataBounds.Clone();
			_dataBounds.ParentObject = this;

			_rescaling = from._rescaling == null ? null : (NumericScaleRescaleConditions)from._rescaling.Clone();
			_rescaling.ParentObject = this;

			_cachedAxisOrg = from._cachedAxisOrg;
			_cachedAxisEnd = from._cachedAxisEnd;
			_cachedAxisSpan = from._cachedAxisSpan;
			_cachedOneByAxisSpan = from._cachedOneByAxisSpan;
		}