/** * Gets the top tile axis for this tile. * @return the axis; null, if none. */ public TileAxis getTileAxisTop() { return _mosaic.getTileAxisTop(_icol); }
/** * 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 tic interval for the horizontal axis in the specified column. * @param icol the column index. * @param interval the major labeled tic interval. */ public void setHInterval(int icol, double interval) { if (_axesPlacement==AxesPlacement.LEFT_TOP) { _mosaic.getTileAxisTop(icol).setInterval(interval); } else if (_axesPlacement==AxesPlacement.LEFT_BOTTOM) { _mosaic.getTileAxisBottom(icol).setInterval(interval); } }
/** * Sets the label for the horizontal axis in the specified column. * @param icol the column index. * @param label the label. */ public void setHLabel(int icol, String label) { if (_axesPlacement==AxesPlacement.LEFT_TOP) { _mosaic.getTileAxisTop(icol).setLabel(label); adjustColorBar(); } else if (_axesPlacement==AxesPlacement.LEFT_BOTTOM) { _mosaic.getTileAxisBottom(icol).setLabel(label); adjustColorBar(); } }
mosaic.getTileAxisTop(0).setLabel("axis label"); mosaic.getTileAxisTop(1).setLabel("axis label"); mosaic.getTileAxisTop(2).setLabel("axis label"); mosaic.getTileAxisLeft(0).setLabel("axis label"); mosaic.getTileAxisLeft(1).setLabel("axis label");
drawZoom(mosaic.getTile(jrow,icol),x,y,false,true); drawZoom(mosaic.getTileAxisTop(jcol),x,y,true,false); drawZoom(mosaic.getTileAxisLeft(jrow),x,y,false,true); drawZoom(mosaic.getTileAxisBottom(jcol),x,y,true,false);
drawZoom(mosaic.getTileAxisBottom(jcol),x,y,true,false); } else { drawZoom(mosaic.getTileAxisTop(jcol),x,y,true,false);