public void TransferFrom(IPlotGroupStyle fromb) { LineStyleGroupStyle from = (LineStyleGroupStyle)fromb; this._isInitialized = from._isInitialized; this._value = from._value; }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { LineStyleGroupStyle s = null != o ? (LineStyleGroupStyle)o : new LineStyleGroupStyle(); s._isStepEnabled = info.GetBoolean("StepEnabled"); return(s); }
public static void PrepareStyle( IPlotGroupStyleCollection externalGroups, IPlotGroupStyleCollection localGroups, Getter getter) { if (!externalGroups.ContainsType(typeof(LineStyleGroupStyle)) && null != localGroups && !localGroups.ContainsType(typeof(LineStyleGroupStyle))) { localGroups.Add(new LineStyleGroupStyle()); } LineStyleGroupStyle grpStyle = null; if (externalGroups.ContainsType(typeof(LineStyleGroupStyle))) { grpStyle = (LineStyleGroupStyle)externalGroups.GetPlotGroupStyle(typeof(LineStyleGroupStyle)); } else if (localGroups != null) { grpStyle = (LineStyleGroupStyle)localGroups.GetPlotGroupStyle(typeof(LineStyleGroupStyle)); } if (grpStyle != null && getter != null && !grpStyle.IsInitialized) { grpStyle.Initialize(getter()); } }
public static void ApplyStyle( IPlotGroupStyleCollection externalGroups, IPlotGroupStyleCollection localGroups, Setter setter) { LineStyleGroupStyle grpStyle = null; IPlotGroupStyleCollection grpColl = null; if (externalGroups.ContainsType(typeof(LineStyleGroupStyle))) { grpColl = externalGroups; } else if (localGroups != null && localGroups.ContainsType(typeof(LineStyleGroupStyle))) { grpColl = localGroups; } if (null != grpColl) { grpStyle = (LineStyleGroupStyle)grpColl.GetPlotGroupStyle(typeof(LineStyleGroupStyle)); grpColl.OnBeforeApplication(typeof(LineStyleGroupStyle)); setter(grpStyle.DashStyle); } }
public LineStyleGroupStyle(LineStyleGroupStyle from) { this._isInitialized = from._isInitialized; this._value = from._value; }
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { LineStyleGroupStyle s = (LineStyleGroupStyle)obj; info.AddValue("StepEnabled", s._isStepEnabled); }