/** * 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); }
highColorCB.setSelectedItem(this.heatmap.getHighColor()); highColorCB.addItemListener(e -> { heatmap.setHighColor(((Color) highColorCB.getSelectedItem())); });
heatmap.setHighColor(Color.ORANGE);