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); } }
/// <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); } }
IScatterSymbol IScatterSymbol.WithInset(IScatterSymbolInset inset) { return(WithInset(inset, null)); }
public ClosedSymbolBase WithInset(IScatterSymbolInset inset) { return(WithInset(inset, null)); }
IScatterSymbol IScatterSymbol.WithInset(IScatterSymbolInset inset) { return this; }
/// <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); } }
IScatterSymbol IScatterSymbol.WithInset(IScatterSymbolInset inset) { return(this); }
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; } }
IScatterSymbol IScatterSymbol.WithInset(IScatterSymbolInset inset) { return WithInset(inset, null); }
public ClosedSymbolBase WithInset(IScatterSymbolInset inset) { return WithInset(inset, null); }