public static void main(String[] args) { ColorKeyLegend colorKeyPanel = new ColorKeyLegend(GREEN, RED, 0d, 100d); showComponent(colorKeyPanel, "ColorKeyLegend demo"); } }
private Component getColorKey() { colorKey = new ColorKeyLegend( this.lowColor, this.highColor, min(this.data), max(this.data) ); return new CenteredJPanel(colorKey); }