public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { TextScale s = SDeserialize(o, info, parent); OnAfterDeserialization(s); return(s); }
public override object Clone() { var result = new TextScale(); result.CopyFrom(this); return(result); }
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); }
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; }
public virtual void OnAfterDeserialization(TextScale s) { }
public TextScale(TextScale from) { CopyFrom(from); }
public TextScale(TextScale from) { CopyFrom(from); }
public virtual void OnAfterDeserialization(TextScale s) { }
public override object Clone() { TextScale result = new TextScale(); result.CopyFrom(this); return result; }
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; }