public ColorGroupStyle(ColorGroupStyle from) { _isStepEnabled = from._isStepEnabled; _isInitialized = from._isInitialized; _listOfValues = from._listOfValues; _colorIndex = from._colorIndex; _cachedColor = from._cachedColor; _isLocalGroupStyle = from._isLocalGroupStyle; }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (ColorGroupStyle)fromb; //System.Diagnostics.Debug.WriteLine(string.Format("ColorTransfer: myIni={0}, myCol={1}, fromI={2}, fromC={3}", _isInitialized, _color.Color.ToString(), from._isInitialized, from._color.Color.ToString())); _isInitialized = from._isInitialized; _listOfValues = from._listOfValues; _colorIndex = from._colorIndex; _cachedColor = from._cachedColor; }
protected ColorGroupStyle(bool isLocalGroupStyle) { _listOfValues = ColorSetManager.Instance.BuiltinDarkPlotColors; _colorIndex = 0; _cachedColor = _listOfValues[_colorIndex]; _isLocalGroupStyle = isLocalGroupStyle; if (isLocalGroupStyle) { _isStepEnabled = false; } else { _isStepEnabled = true; } }
public void Initialize(NamedColor c) { // we will not accept the known color set here // this has historical reasons: until 2012 we don't even have the concept of color sets // thus all plot colors were part of the know color set, and we could not distinguish between known colors and plot colors if (null != c.ParentColorSet && !object.ReferenceEquals(c.ParentColorSet, ColorSetManager.Instance.BuiltinKnownColors) ) { _listOfValues = c.ParentColorSet; ColorSetManager.Instance.DeclareAsPlotColorList(_listOfValues); } _colorIndex = Math.Max(0, _listOfValues.IndexOf(c)); _cachedColor = _listOfValues[_colorIndex]; _isInitialized = true; }
public void TransferFrom(IPlotGroupStyle fromb) { ColorGroupStyle from = (ColorGroupStyle)fromb; //System.Diagnostics.Debug.WriteLine(string.Format("ColorTransfer: myIni={0}, myCol={1}, fromI={2}, fromC={3}", _isInitialized, _color.Color.ToString(), from._isInitialized, from._color.Color.ToString())); this._isInitialized = from._isInitialized; this._listOfValues = from._listOfValues; this._colorIndex = from._colorIndex; this._cachedColor = from._cachedColor; }
public ColorGroupStyle(ColorGroupStyle from) { this._isStepEnabled = from._isStepEnabled; this._isInitialized = from._isInitialized; this._listOfValues = from._listOfValues; this._colorIndex = from._colorIndex; this._cachedColor = from._cachedColor; this._isLocalGroupStyle = from._isLocalGroupStyle; }