/** * 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(); }
/** * 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; }
_splitPane = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT,_panelTL,_panelBR); double colTL = _panelTL.getMosaic().countColumns(); double colBR = _panelBR.getMosaic().countColumns(); resizeWeight = colTL/(colTL+colBR); } else {
if (_autoColorMapped) { int rows = _mosaic.countRows(); int cols = _mosaic.countColumns(); ColorMapped cmBest = null; ColorMapped cmSolid = 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 jcol = tile.getColumnIndex(); int nrow = mosaic.countRows(); int ncol = mosaic.countColumns(); for (int irow=0; irow<nrow; ++irow) { if (irow!=jrow)
int ncol = mosaic.countColumns(); for (int icol=0; icol<ncol; ++icol) drawZoom(mosaic.getTile(jrow,icol),x,y,false,true);