/** * Set the 1st background color of the dial frame (for gradient starting color). * @param color in #RRGGBB format (hexadecimal). */ public void setFrameBgColor1(String color) { if (Objects.equals(color, _bgColor1)) { return; } _bgColor1 = color; if (_bgColor1 == null) { _bgRGB1 = null; } else { _bgRGB1 = new int[3]; Chart.decode(_bgColor1, _bgRGB1); } fireEvent(ChartDataEvent.CHANGED, DialChartDataEvent.FRAME_BG_COLOR_1, color); }
/** * Set the tick color. * @param color in #RRGGBB format (hexadecimal). */ public void setTickColor(String color) { if (Objects.equals(color, _tickColor)) { return; } _tickColor = color; if (_tickColor == null) { _tickRGB = null; } else { _tickRGB = new int[3]; Chart.decode(_tickColor, _tickRGB); } fireEvent(ChartDataEvent.CHANGED, DialChartDataEvent.TICK_COLOR, color); }
/** * Set the pane color of the chart. * @param color in #RRGGBB format (hexadecimal). */ public void setPaneColor(String color) { if (Objects.equals(color, _paneColor)) { return; } _paneColor = color; if (_paneColor == null) { _paneRGB = null; } else { _paneRGB = new int[3]; decode(_paneColor, _paneRGB); } smartDrawChart(); }
/** * Set the background color of the chart. * @param color in #RRGGBB format (hexadecimal). */ public void setBgColor(String color) { if (Objects.equals(color, _bgColor)) { return; } _bgColor = color; if (_bgColor == null) { _bgRGB = null; } else { _bgRGB = new int[3]; decode(_bgColor, _bgRGB); } smartDrawChart(); }
/** * Set the background color of the dial frame. * @param color in #RRGGBB format (hexadecimal). */ public void setFrameBgColor(String color) { if (Objects.equals(color, _bgColor)) { return; } _bgColor = color; if (_bgColor == null) { _bgRGB = null; } else { _bgRGB = new int[3]; Chart.decode(_bgColor, _bgRGB); } fireEvent(ChartDataEvent.CHANGED, DialChartDataEvent.FRAME_BG_COLOR, color); }
/** * Set the needle color. * @param color in #RRGGBB format (hexadecimal). */ public void setNeedleColor(String color) { if (Objects.equals(color, _needleColor)) { return; } _needleColor = color; if (_needleColor == null) { _needleRGB = null; } else { _needleRGB = new int[3]; Chart.decode(_needleColor, _needleRGB); } fireEvent(ChartDataEvent.CHANGED, DialChartDataEvent.NEEDLE_COLOR, color); }
/** * Set the range color of the dial range. * @param color in #RRGGBB format (hexadecimal). */ public void setRangeColor(String color) { if (Objects.equals(color, _color)) { return; } _color = color; if (_color == null) { _RGB = null; } else { _RGB = new int[3]; Chart.decode(_color, _RGB); } _scale.fireEvent(ChartDataEvent.CHANGED, DialChartDataEvent.RANGE_COLOR, color); }
/** * Set the foreground color of the dial frame. * @param color in #RRGGBB format (hexadecimal). */ public void setFrameFgColor(String color) { if (Objects.equals(color, _fgColor)) { return; } _fgColor = color; if (_fgColor == null) { _fgRGB = null; } else { _fgRGB = new int[3]; Chart.decode(_fgColor, _fgRGB); } fireEvent(ChartDataEvent.CHANGED, DialChartDataEvent.FRAME_FG_COLOR, color); }
/** * Set the 2nd background color of the dial frame (for gradient ending color). * @param color in #RRGGBB format (hexadecimal). */ public void setFrameBgColor2(String color) { if (Objects.equals(color, _bgColor2)) { return; } _bgColor2 = color; if (_bgColor2 == null) { _bgRGB2 = null; } else { _bgRGB2 = new int[3]; Chart.decode(_bgColor2, _bgRGB2); } fireEvent(ChartDataEvent.CHANGED, DialChartDataEvent.FRAME_BG_COLOR_2, color); }