Ejemplo n.º 1
0
        public ClosedSymbolBase WithInset(IScatterSymbolInset inset, bool?isInfluencedByPlotColor)
        {
            if (object.ReferenceEquals(_inset, inset) && (!isInfluencedByPlotColor.HasValue || _plotColorInfluence.HasFlag(PlotColorInfluence.InsetColorFull) == isInfluencedByPlotColor.Value))
            {
                return(this);
            }
            else
            {
                var result = (ClosedSymbolBase)MemberwiseClone();
                result._inset = inset;

                if (isInfluencedByPlotColor.HasValue)
                {
                    result._plotColorInfluence = result._plotColorInfluence.WithFlag(PlotColorInfluence.InsetColorFull, isInfluencedByPlotColor.Value);
                }
                return(result);
            }
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        public void CopyFrom(ScatterPlotStyle from, Main.EventFiring eventFiring)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

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

                _independentScatterSymbol = from._independentScatterSymbol;
                _scatterSymbol            = from._scatterSymbol;

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

                _independentColor = from._independentColor;
                _color            = from._color;

                _overrideFrame   = from._overrideFrame;
                _overriddenFrame = from._overriddenFrame;
                _overrideInset   = from._overrideInset;
                _overriddenInset = from._overriddenInset;
                _overrideStructureWidthOffset = from._overrideStructureWidthOffset;
                _overrideStructureWidthFactor = from._overrideStructureWidthFactor;
                _overridePlotColorInfluence   = from._overridePlotColorInfluence;
                _overrideFillColor            = from._overrideFillColor;
                _overrideFrameColor           = from._overrideFrameColor;
                _overrideInsetColor           = from._overrideInsetColor;

                EhSelfChanged(EventArgs.Empty);

                suspendToken.Resume(eventFiring);
            }
        }
Ejemplo n.º 3
0
 IScatterSymbol IScatterSymbol.WithInset(IScatterSymbolInset inset)
 {
     return(WithInset(inset, null));
 }
Ejemplo n.º 4
0
 public ClosedSymbolBase WithInset(IScatterSymbolInset inset)
 {
     return(WithInset(inset, null));
 }
Ejemplo n.º 5
0
		IScatterSymbol IScatterSymbol.WithInset(IScatterSymbolInset inset)
		{
			return this;
		}
Ejemplo n.º 6
0
		/// <inheritdoc/>
		public void CopyFrom(ScatterPlotStyle 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._independentOnShiftingGroupStyles = from._independentOnShiftingGroupStyles;

				this._independentScatterSymbol = from._independentScatterSymbol;
				this._scatterSymbol = from._scatterSymbol;

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

				this._independentColor = from._independentColor;
				this._color = from._color;

				this._overrideFrame = from._overrideFrame;
				this._overriddenFrame = from._overriddenFrame;
				this._overrideInset = from._overrideInset;
				this._overriddenInset = from._overriddenInset;
				this._overrideStructureWidthOffset = from._overrideStructureWidthOffset;
				this._overrideStructureWidthFactor = from._overrideStructureWidthFactor;
				this._overridePlotColorInfluence = from._overridePlotColorInfluence;
				this._overrideFillColor = from._overrideFillColor;
				this._overrideFrameColor = from._overrideFrameColor;
				this._overrideInsetColor = from._overrideInsetColor;

				EhSelfChanged(EventArgs.Empty);

				suspendToken.Resume(eventFiring);
			}
		}
Ejemplo n.º 7
0
 IScatterSymbol IScatterSymbol.WithInset(IScatterSymbolInset inset)
 {
     return(this);
 }
Ejemplo n.º 8
0
		public ClosedSymbolBase WithInset(IScatterSymbolInset inset, bool? isInfluencedByPlotColor)
		{
			if (object.ReferenceEquals(_inset, inset) && (!isInfluencedByPlotColor.HasValue || _plotColorInfluence.HasFlag(PlotColorInfluence.InsetColorFull) == isInfluencedByPlotColor.Value))
			{
				return this;
			}
			else
			{
				var result = (ClosedSymbolBase)this.MemberwiseClone();
				result._inset = inset;

				if (isInfluencedByPlotColor.HasValue)
					result._plotColorInfluence = result._plotColorInfluence.WithFlag(PlotColorInfluence.InsetColorFull, isInfluencedByPlotColor.Value);
				return result;
			}
		}
Ejemplo n.º 9
0
		IScatterSymbol IScatterSymbol.WithInset(IScatterSymbolInset inset)
		{
			return WithInset(inset, null);
		}
Ejemplo n.º 10
0
		public ClosedSymbolBase WithInset(IScatterSymbolInset inset)
		{
			return WithInset(inset, null);
		}