示例#1
0
        public void CopyFrom(LinePlotStyle from, Main.EventFiring eventFiring)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            using (var suspendToken = SuspendGetToken())
            {
                _independentSkipFreq = from._independentSkipFreq;
                _skipFreq            = from._skipFreq;

                _ignoreMissingDataPoints = from._ignoreMissingDataPoints;
                _connectCircular         = from._connectCircular;
                Connection = from._connectionStyle; // beachte links nur Connection, damit das Template mit gesetzt wird

                _linePen = from._linePen;           // immutable
                _independentDashStyle = from._independentDashStyle;
                _independentColor     = from._independentColor;

                _independentSymbolSize = from._independentSymbolSize;
                _symbolSize            = from._symbolSize;

                _useSymbolGap    = from._useSymbolGap;
                _symbolGapOffset = from._symbolGapOffset;
                _symbolGapFactor = from._symbolGapFactor;
                _keepWestNorthThroughSymbolGap = from._keepWestNorthThroughSymbolGap;

                EhSelfChanged();
                suspendToken.Resume(eventFiring);
            }
        }
示例#2
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                LinePlotStyle s = null != o ? (LinePlotStyle)o : new LinePlotStyle(info);

                s._independentSkipFreq = info.GetBoolean("IndependentSkipFreq");
                s._skipFreq            = info.GetInt32("SkipFreq");

                s._ignoreMissingDataPoints = info.GetBoolean("IgnoreMissingPoints");
                s._connectCircular         = info.GetBoolean("ConnectCircular");
                s.Connection            = (ILineConnectionStyle)info.GetValue("Connection", s);
                s._linePen              = (PenX3D)info.GetValue("Pen", s);
                s._independentDashStyle = info.GetBoolean("IndependentDashStyle");
                s._independentColor     = info.GetBoolean("IndependentColor");

                s._independentSymbolSize = info.GetBoolean("IndependentSymbolSize");
                s._symbolSize            = info.GetDouble("SymbolSize");

                s._useSymbolGap    = info.GetBoolean("UseSymbolGap");
                s._symbolGapOffset = info.GetDouble("SymbolGapOffset");
                s._symbolGapFactor = info.GetDouble("SymbolGapFactor");
                s._keepWestNorthThroughSymbolGap = info.GetBoolean("KeepWestNorth");
                return(s);
            }
示例#3
0
		public LinePlotStyle(LinePlotStyle from)
		{
			CopyFrom(from, Main.EventFiring.Suppressed);
		}
示例#4
0
		public void CopyFrom(LinePlotStyle from, Main.EventFiring eventFiring)
		{
			if (object.ReferenceEquals(this, from))
				return;

			using (var suspendToken = SuspendGetToken())
			{
				this._independentSkipFreq = from._independentSkipFreq;
				this._skipFreq = from._skipFreq;

				this._ignoreMissingDataPoints = from._ignoreMissingDataPoints;
				this._connectCircular = from._connectCircular;
				this.Connection = from._connectionStyle; // beachte links nur Connection, damit das Template mit gesetzt wird

				this._linePen = from._linePen; // immutable
				this._independentDashStyle = from._independentDashStyle;
				this._independentColor = from._independentColor;

				this._independentSymbolSize = from._independentSymbolSize;
				this._symbolSize = from._symbolSize;

				this._useSymbolGap = from._useSymbolGap;
				this._symbolGapOffset = from._symbolGapOffset;
				this._symbolGapFactor = from._symbolGapFactor;
				this._keepWestNorthThroughSymbolGap = from._keepWestNorthThroughSymbolGap;

				EhSelfChanged();
				suspendToken.Resume(eventFiring);
			}
		}
示例#5
0
 public LinePlotStyle(LinePlotStyle from)
 {
     CopyFrom(from, Main.EventFiring.Suppressed);
 }