示例#1
0
        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;
        }
示例#2
0
            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);
            }
示例#3
0
            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);
            }
示例#4
0
 public BarGraphPlotStyle(BarGraphPlotStyle from, bool copyWithDataReferences)
 {
     CopyFrom(from, copyWithDataReferences);
 }
示例#5
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                BarGraphPlotStyle s = SDeserialize(o, info, parent);

                return(s);
            }