/** * Sets the format for the horizontal axis in the specified column. * @param icol the column index. * @param format the format. */ public void setHFormat(int icol, String format) { if (_axesPlacement==AxesPlacement.LEFT_TOP) { _mosaic.getTileAxisTop(icol).setFormat(format); } else if (_axesPlacement==AxesPlacement.LEFT_BOTTOM) { _mosaic.getTileAxisBottom(icol).setFormat(format); } }
/** * Sets the format for the vertical axis in the specified row. * @param irow the row index. * @param format the format. */ public void setVFormat(int irow, String format) { if (_axesPlacement!=AxesPlacement.NONE) { _mosaic.getTileAxisLeft(irow).setFormat(format); } }
/** * Sets the format for major tic annotation for this 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 setFormat(String format) { _mosaic.getTileAxisRight(0).setFormat(format); revalidate(); }