/** * Gets the left tile axis for this tile. * @return the axis; null, if none. */ public TileAxis getTileAxisLeft() { return _mosaic.getTileAxisLeft(_irow); }
/** * 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 tic label rotation for the vertical axis in the specifie row. * If true, tic labels in the vertical axis are rotated 90 degrees * counter-clockwise. The default is false, not rotated. * @param irow the row index. * @param rotated true, if rotated; false, otherwise. */ public void setVRotated(int irow, boolean rotated) { if (_axesPlacement!=AxesPlacement.NONE) { _mosaic.getTileAxisLeft(irow).setVerticalAxisRotated(rotated); } }
/** * Sets the tic interval for the vertical axis in the specified column. * @param irow the row index. * @param interval the major labeled tic interval. */ public void setVInterval(int irow, double interval) { if (_axesPlacement!=AxesPlacement.NONE) { _mosaic.getTileAxisLeft(irow).setInterval(interval); } }
/** * Sets the label for the vertical axis in the specified row. * @param irow the row index. * @param label the label. */ public void setVLabel(int irow, String label) { if (_axesPlacement!=AxesPlacement.NONE) { _mosaic.getTileAxisLeft(irow).setLabel(label); } }
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; } }
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.getTileAxisTop(1).setLabel("axis label"); mosaic.getTileAxisTop(2).setLabel("axis label"); mosaic.getTileAxisLeft(0).setLabel("axis label"); mosaic.getTileAxisLeft(1).setLabel("axis label"); mosaic.getTileAxisBottom(0).setLabel("axis label"); mosaic.getTileAxisBottom(1).setLabel("axis label");
drawZoom(mosaic.getTileAxisRight(jrow),x,y,false,true); } else { drawZoom(mosaic.getTileAxisLeft(jrow),x,y,false,true);