/** * Sets default limits for the horizontal axis in the specified column. * This method may be used to restore default limits after they have * been set explicitly. * @param icol the column index. */ public void setHLimitsDefault(int icol) { int nrow = getMosaic().countRows(); for (int irow=0; irow<nrow; ++irow) getTile(irow,icol).setHLimitsDefault(); }
/** * Sets limits for the horizontal axis in the specified column. * By default, limits are computed automatically by tiled graphical views. * This method can be used to override those default limits. * @param icol the column index. * @param hmin the minimum value. * @param hmax the maximum value. */ public void setHLimits(int icol, double hmin, double hmax) { Check.argument(hmin<hmax,"hmin<hmax"); int nrow = getMosaic().countRows(); for (int irow=0; irow<nrow; ++irow) getTile(irow,icol).setHLimits(hmin,hmax); }
/** * Removes the specified tiled view from this plot panel. * @param tv the tiled view. * @return true, if this panel contained the specified tiled view; * false, otherwise. */ public boolean remove(TiledView tv) { if (tv instanceof ColorMapped) { ColorMapped cm = (ColorMapped)tv; cm.getColorMap().removeListener(_colorMapHandler); } int nrow = _mosaic.countRows(); int ncol = _mosaic.countColumns(); for (int irow=0; irow<nrow; ++irow) { for (int icol=0; icol<ncol; ++icol) { if (getTile(irow,icol).removeTiledView(tv)) return true; } } return false; }
int rows = _mosaic.countRows(); int cols = _mosaic.countColumns(); ColorMapped cmBest = null;
/** * Gets the tile adjacent to this axis. * @return the tile. */ public Tile getTile() { if (isTop()) { return _mosaic.getTile(0,_index); } else if (isLeft()) { return _mosaic.getTile(_index,0); } else if (isBottom()) { int irow = _mosaic.countRows()-1; return _mosaic.getTile(irow,_index); } else if (isRight()) { int icol = _mosaic.countColumns()-1; return _mosaic.getTile(_index,icol); } else { return null; } }
int jrow = tile.getRowIndex(); int jcol = tile.getColumnIndex(); int nrow = mosaic.countRows(); int ncol = mosaic.countColumns(); for (int irow=0; irow<nrow; ++irow) {
if (axis.isHorizontal()) { int jcol = axis.getIndex(); int nrow = mosaic.countRows(); for (int irow=0; irow<nrow; ++irow) drawZoom(mosaic.getTile(irow,jcol),x,y,true,false);