Exemple #1
0
 void CopyFrom(ErrorBarPlotStyle from)
 {
     this._independentSymbolSize           = from._independentSymbolSize;
     this._symbolSize                      = from._symbolSize;
     this._symbolGap                       = from._symbolGap;
     this._independentColor                = from._independentColor;
     this._showEndBars                     = from._showEndBars;
     this._isHorizontalStyle               = from._isHorizontalStyle;
     this._doNotShiftHorizontalPosition    = from._doNotShiftHorizontalPosition;
     this._strokePen                       = (PenX)from._strokePen.Clone();
     this._positiveErrorColumn             = (NumericColumnProxy)from._positiveErrorColumn.Clone();
     this._negativeErrorColumn             = (NumericColumnProxy)from._negativeErrorColumn.Clone();
     this._cachedLogicalShiftOfIndependent = from._cachedLogicalShiftOfIndependent;
 }
Exemple #2
0
            public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                ErrorBarPlotStyle s = (ErrorBarPlotStyle)obj;

                info.AddValue("PositiveError", s._positiveErrorColumn);
                info.AddValue("NegativeError", s._negativeErrorColumn);

                info.AddValue("IndependentColor", s._isHorizontalStyle);
                info.AddValue("Pen", s._strokePen);

                info.AddValue("Axis", s._isHorizontalStyle ? 0 : 1);
                info.AddValue("IndependentSymbolSize", s._independentSymbolSize);
                info.AddValue("SymbolSize", s._symbolSize);
                info.AddValue("SymbolGap", s._symbolGap);
                info.AddValue("SkipFreq", s._skipFreq);

                info.AddValue("ShowEndBars", s._showEndBars);
                info.AddValue("NotShiftHorzPos", s._doNotShiftHorizontalPosition);
            }
Exemple #3
0
            protected virtual ErrorBarPlotStyle SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                ErrorBarPlotStyle s = null != o ? (ErrorBarPlotStyle)o : new ErrorBarPlotStyle();

                s._positiveErrorColumn = (Altaxo.Data.NumericColumnProxy)info.GetValue("PositiveError");
                s._negativeErrorColumn = (Altaxo.Data.NumericColumnProxy)info.GetValue("NegativeError");

                s._independentColor = info.GetBoolean("IndependentColor");
                s.Pen = (PenX)info.GetValue("Pen", s);

                s._isHorizontalStyle     = (0 == info.GetInt32("Axis"));
                s._independentSymbolSize = info.GetBoolean("IndependentSymbolSize");
                s._symbolSize            = info.GetInt32("SymbolSize");
                s._symbolGap             = info.GetBoolean("SymbolGap");
                s._skipFreq    = info.GetInt32("SkipFreq");
                s._showEndBars = info.GetBoolean("ShowEndBars");
                s._doNotShiftHorizontalPosition = info.GetBoolean("NotShiftHorzPos");

                return(s);
            }
 void CopyFrom(ErrorBarPlotStyle from)
 {
   this._independentSymbolSize = from._independentSymbolSize;
   this._symbolSize = from._symbolSize;
   this._symbolGap = from._symbolGap;
   this._independentColor = from._independentColor;
   this._showEndBars = from._showEndBars;
   this._isHorizontalStyle = from._isHorizontalStyle;
   this._doNotShiftHorizontalPosition = from._doNotShiftHorizontalPosition;
   this._strokePen = (PenX)from._strokePen.Clone();
   this._positiveErrorColumn = (NumericColumnProxy)from._positiveErrorColumn.Clone();
   this._negativeErrorColumn = (NumericColumnProxy)from._negativeErrorColumn.Clone();
   this._cachedLogicalShiftOfIndependent = from._cachedLogicalShiftOfIndependent;
 }
 public ErrorBarPlotStyle(ErrorBarPlotStyle from)
 {
   CopyFrom(from);
 }
 public bool InitializeDocument(params object[] args)
 {
   if (args == null || args.Length == 0)
     return false;
   ErrorBarPlotStyle doc = args[0] as ErrorBarPlotStyle;
   if (doc == null)
     return false;
   _doc = doc;
   Initialize(true);
   return true;
 }
Exemple #7
0
		public ErrorBarPlotStyle(ErrorBarPlotStyle from, bool copyWithDataReferences)
		{
			CopyFrom(from, copyWithDataReferences);
		}
Exemple #8
0
		public ErrorBarYPlotStyle(ErrorBarPlotStyle from, bool copyWithDataReferences) : base(from, copyWithDataReferences)
		{
		}
Exemple #9
0
 public ErrorBarPlotStyle(ErrorBarPlotStyle from)
 {
     CopyFrom(from);
 }
Exemple #10
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                ErrorBarPlotStyle s = SDeserialize(o, info, parent);

                return(s);
            }