/** * Establishes the low and high colors of the gradient. * * @param lowColor the low color of the gradient * @param highColor the high color of the gradient */ public void setColors(Color lowColor, Color highColor) { this.lowColor = lowColor; this.colorKey.setLowColor(lowColor); this.setHighColor(highColor); }
/** * Establishes the low color of the gradient. * * @param color the low color of the gradient */ public void setLowColor(Color color) { this.lowColor = color; this.colorKey.setLowColor(color); this.initializeColors(); }