private void duringZoom(MouseEvent e) { int xdraw = e.getX(); int ydraw = e.getY(); if (_tile!=null) { drawZoom(_tile,_xdraw,_ydraw,true,true); drawZoom(_tile, xdraw, ydraw,true,true); } else if (_axis!=null) { drawZoom(_axis,_xdraw,_ydraw,_axis.isHorizontal(),_axis.isVertical()); drawZoom(_axis, xdraw, ydraw,_axis.isHorizontal(),_axis.isVertical()); } }
private void beginZoom(MouseEvent e) { _xbegin = e.getX(); _ybegin = e.getY(); Object source = e.getSource(); if (source instanceof Tile) { Tile tile = _tile = (Tile)source; drawZoom(tile,_xbegin,_ybegin,true,true); tile.addMouseMotionListener(_mml); } else if (source instanceof TileAxis) { TileAxis axis = _axis = (TileAxis)source; drawZoom(axis,_xbegin,_ybegin,_axis.isHorizontal(),_axis.isVertical()); axis.addMouseMotionListener(_mml); } }
for (int irow=0; irow<nrow; ++irow) { if (irow!=jrow) drawZoom(mosaic.getTile(irow,jcol),x,y,true,false); drawZoom(mosaic.getTile(jrow,icol),x,y,false,true); drawZoom(mosaic.getTileAxisTop(jcol),x,y,true,false); drawZoom(mosaic.getTileAxisLeft(jrow),x,y,false,true); drawZoom(mosaic.getTileAxisBottom(jcol),x,y,true,false); drawZoom(mosaic.getTileAxisRight(jrow),x,y,false,true);
int nrow = mosaic.countRows(); for (int irow=0; irow<nrow; ++irow) drawZoom(mosaic.getTile(irow,jcol),x,y,true,false); if (axis.isTop()) { drawZoom(mosaic.getTileAxisBottom(jcol),x,y,true,false); } else { drawZoom(mosaic.getTileAxisTop(jcol),x,y,true,false); int ncol = mosaic.countColumns(); for (int icol=0; icol<ncol; ++icol) drawZoom(mosaic.getTile(jrow,icol),x,y,false,true); if (axis.isLeft()) { drawZoom(mosaic.getTileAxisRight(jrow),x,y,false,true); } else { drawZoom(mosaic.getTileAxisLeft(jrow),x,y,false,true);