/** * Gets the bottom tile axis for this tile. * @return the axis; null, if none. */ public TileAxis getTileAxisBottom() { return _mosaic.getTileAxisBottom(_icol); }
TileAxis[] getAxes(int i) { Mosaic mosaic = getMosaic(); TileAxis al0 = mosaic.getTileAxisLeft(0); TileAxis al1 = mosaic.getTileAxisLeft(1); TileAxis ab0 = mosaic.getTileAxisBottom(0); TileAxis ab1 = mosaic.getTileAxisBottom(1); TileAxis[] a = null; if (_axesPlacement==AxesPlacement.NONE) { a = new TileAxis[]{}; } else if (_orientation==Orientation.X1DOWN_X2RIGHT) { if (i==1) a = new TileAxis[]{al1}; if (i==2) a = new TileAxis[]{ab0}; if (i==3) a = new TileAxis[]{al0,ab1}; } else if (_orientation==Orientation.X1DOWN_X3RIGHT) { if (i==1) a = new TileAxis[]{al1}; if (i==2) a = new TileAxis[]{al0,ab1}; if (i==3) a = new TileAxis[]{ab0}; } else if (_orientation==Orientation.X1RIGHT_X2UP) { if (i==1) a = new TileAxis[]{ab0}; if (i==2) a = new TileAxis[]{al1}; if (i==3) a = new TileAxis[]{al0,ab1}; } else if (_orientation==Orientation.X1RIGHT_X3UP) { if (i==1) a = new TileAxis[]{ab0}; if (i==2) a = new TileAxis[]{al0,ab1}; if (i==3) a = new TileAxis[]{al1}; } return a; } }
/** * 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.getTileAxisLeft(0).setLabel("axis label"); mosaic.getTileAxisLeft(1).setLabel("axis label"); mosaic.getTileAxisBottom(0).setLabel("axis label"); 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.getTileAxisBottom(jcol),x,y,true,false); drawZoom(mosaic.getTileAxisRight(jrow),x,y,false,true);
drawZoom(mosaic.getTile(irow,jcol),x,y,true,false); if (axis.isTop()) { drawZoom(mosaic.getTileAxisBottom(jcol),x,y,true,false); } else { drawZoom(mosaic.getTileAxisTop(jcol),x,y,true,false);