/** * Sets the format for major tic annotation of the color bar. * The default format is "%1.4G", which yields a minimum of 1 digit, * with up to 4 digits of precision. Any trailing zeros and decimal * point are removed from tic annotation. * @param format the format. */ public void setColorBarFormat(String format) { _colorBarFormat = format; if (_colorBar!=null) { _colorBar.setFormat(format); revalidate(); } }
_colorBar.setBackground(getBackground()); if (_colorBarFormat!=null) _colorBar.setFormat(_colorBarFormat); if (_colorBarWidthMinimum!=0) _colorBar.setWidthMinimum(_colorBarWidthMinimum);