/** * Gets the right tile axis for this tile. * @return the axis; null, if none. */ public TileAxis getTileAxisRight() { return _mosaic.getTileAxisRight(_irow); }
/** * Sets the label for this color bar. * @param label the label; null, if none. */ public void setLabel(String label) { _mosaic.getTileAxisRight(0).setLabel(label); revalidate(); }
/** * 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(); }
/** * Sets the major labeled tic interval in the axis for this color bar. * @param interval the major labeled tic interval. */ public void setInterval(double interval) { _mosaic.getTileAxisRight(0).setInterval(interval); revalidate(); }
public void setWidthMinimum(int widthMinimum) { _mosaic.getTileAxisRight(0).setWidthMinimum(widthMinimum); revalidate(); }
/** * Constructs a new color bar with specified label. * @param label the label; null, if none. */ public ColorBar(String label) { super(); _mosaic = new Mosaic(1,1,EnumSet.of(Mosaic.AxesPlacement.RIGHT)); if (label!=null) _mosaic.getTileAxisRight(0).setLabel(label); _mosaic.setWidthMinimum(0,15); _mosaic.setWidthElastic(0,0); _tile = _mosaic.getTile(0,0); this.setLayout(new BorderLayout()); this.add(_mosaic,BorderLayout.CENTER); }
drawZoom(mosaic.getTileAxisLeft(jrow),x,y,false,true); drawZoom(mosaic.getTileAxisBottom(jcol),x,y,true,false); drawZoom(mosaic.getTileAxisRight(jrow),x,y,false,true);
mosaic.getTileAxisBottom(1).setLabel("axis label"); mosaic.getTileAxisBottom(2).setLabel("axis label"); mosaic.getTileAxisRight(0).setLabel("axis label"); mosaic.getTileAxisRight(1).setLabel("axis label");
drawZoom(mosaic.getTile(jrow,icol),x,y,false,true); if (axis.isLeft()) { drawZoom(mosaic.getTileAxisRight(jrow),x,y,false,true); } else { drawZoom(mosaic.getTileAxisLeft(jrow),x,y,false,true);