public void Clear() { PlotColor = null; FillBrush?.Dispose(); FillBrush = null; FrameBrush?.Dispose(); FrameBrush = null; InsetBrush?.Dispose(); InsetBrush = null; }
public void ChangeTheColorOfTheArrow(string original, NamedColor?color, string expected) { // Assign Arrow originalArrow = original; // Act var arrow = originalArrow.Color(color); // Assert arrow.ToString().Should().Be(expected); }
protected string GetColorClassName(string prefix = null, NamedColor?color = null) { prefix = prefix ?? this.GetType().Name.ToLower(); string name = null; if (color.HasValue) { name = $"{prefix}-{this.BreakClassName(color.ToString())}"; } return(name); }
/// <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); } }
/// <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); } }