public BarGraphPlotStyle(BarGraphPlotStyle from) { this._relInnerGapWidth = from._relInnerGapWidth; this._relOuterGapWidth = from._relOuterGapWidth; this._width = from._width; this._position = from._position; this._independentColor = from._independentColor; this._fillBrush = from._fillBrush.Clone(); this._framePen = from._framePen == null ? null : (PenX)from._framePen.Clone(); this._startAtPreviousItem = from._startAtPreviousItem; this._previousItemYGap = from._previousItemYGap; this._usePhysicalBaseValue = from._usePhysicalBaseValue; this._baseValue = from._baseValue; this._parent = from._parent; }
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { BarGraphPlotStyle s = (BarGraphPlotStyle)obj; info.AddValue("InnerGapWidth", s._relInnerGapWidth); info.AddValue("OuterGapWidth", s._relOuterGapWidth); info.AddValue("IndependentColor", s._independentColor); info.AddValue("FillBrush", s._fillBrush); info.AddValue("FramePen", s._framePen); info.AddValue("UsePhysicalBaseValue", s._usePhysicalBaseValue); info.AddValue("BaseValue", (object)s._baseValue); info.AddValue("StartAtPrevious", s._startAtPreviousItem); info.AddValue("PreviousItemGap", s._previousItemYGap); info.AddValue("ActualWidth", s._width); info.AddValue("ActaulPosition", s._position); }
protected virtual BarGraphPlotStyle SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { BarGraphPlotStyle s = null != o ? (BarGraphPlotStyle)o : new BarGraphPlotStyle(info); s._relInnerGapX = info.GetDouble("InnerGapWidth"); s._relOuterGapX = info.GetDouble("OuterGapWidth"); s._independentFillColor = info.GetBoolean("IndependentColor"); s.FillBrush = (BrushX)info.GetValue("FillBrush", s); s.FramePen = (PenX)info.GetValue("FramePen", s); s._usePhysicalBaseValue = info.GetBoolean("UsePhysicalBaseValue"); s._baseValue = (Altaxo.Data.AltaxoVariant)info.GetValue("BaseValue", s); s._startAtPreviousItem = info.GetBoolean("StartAtPrevious"); s._previousItemYGap = info.GetDouble("PreviousItemGap"); s._xSizeLogical = info.GetDouble("ActualWidth"); s._xOffsetLogical = info.GetDouble("ActualPosition"); return(s); }
public BarGraphPlotStyle(BarGraphPlotStyle from, bool copyWithDataReferences) { CopyFrom(from, copyWithDataReferences); }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { BarGraphPlotStyle s = SDeserialize(o, info, parent); return(s); }