/** * 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 mode manager to this frame and activates some modes. */ private void addModeManager() { _modeManager = new ModeManager(); _panelTL.getMosaic().setModeManager(_modeManager); if (_panelBR!=_panelTL) _panelBR.getMosaic().setModeManager(_modeManager); _tileZoomMode = new TileZoomMode(_modeManager); _mouseTrackMode = new MouseTrackMode(_modeManager); _tileZoomMode.setActive(true); _mouseTrackMode.setActive(true); }
/** * 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); }
_splitPane = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT,_panelTL,_panelBR); double colTL = _panelTL.getMosaic().countColumns(); double colBR = _panelBR.getMosaic().countColumns(); resizeWeight = colTL/(colTL+colBR); } else { _splitPane = new JSplitPane( JSplitPane.VERTICAL_SPLIT,_panelTL,_panelBR); double rowTL = _panelTL.getMosaic().countRows(); double rowBR = _panelBR.getMosaic().countRows(); resizeWeight = rowTL/(rowTL+rowBR);
private static void plot(TriMesh tm) { TriMeshView tmv = new TriMeshView(tm); tmv.setPolysVisible(true); tmv.setTriColor(Color.BLACK); tmv.setPolyColor(Color.BLUE); PlotPanel panel = new PlotPanel(); panel.setHLabel("x"); panel.setVLabel("y"); Mosaic mosaic = panel.getMosaic(); mosaic.getTile(0,0).addTiledView(tmv); PlotFrame frame = new PlotFrame(panel); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(700,700); frame.setVisible(true); } }