/** * 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 default limits for the vertical axis in the specified column. * This method may be used to restore default limits after they have * been set explicitly. * @param irow the row index. */ public void setVLimitsDefault(int irow) { int ncol = getMosaic().countColumns(); for (int icol=0; icol<ncol; ++icol) getTile(irow,icol).setVLimitsDefault(); }
/** * Adds the specified tiled view to this plot panel. If the tiled view * is already in the specified tile, it is first removed, before adding * it again. * @param irow the tile row index. * @param icol the tile column index. * @param tv the tiled view. * @return true, if the tile did not already contain the specified * tiled view; false, otherwise. */ public boolean addTiledView(int irow, int icol, TiledView tv) { if (tv instanceof ColorMapped) { ColorMapped cm = (ColorMapped)tv; cm.getColorMap().addListener(_colorMapHandler); } return getTile(irow,icol).addTiledView(tv); }
/** * 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); }
/** * Sets limits for the vertical axis in the specified row. * By default, limits are computed automatically by tiled graphical views. * This method can be used to override those default limits. * @param irow the row index. * @param vmin the minimum value. * @param vmax the maximum value. */ public void setVLimits(int irow, double vmin, double vmax) { Check.argument(vmin<vmax,"vmin<vmax"); int ncol = getMosaic().countColumns(); for (int icol=0; icol<ncol; ++icol) getTile(irow,icol).setVLimits(vmin,vmax); }
/** * 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; }
for (int ncol=cols-1; ncol>=0; --ncol) { for (int nrow=0; nrow<rows; ++nrow) { Tile t = getTile(nrow,ncol); int ntv = t.countTiledViews(); for (int itv=ntv-1; itv>=0 && cmBest==null; --itv) {