/** * Determines whether this axis is placed at left or right of mosaic, and * is rotated to read normal to the vertical axis. * @return true, if vertical and rotated; false, otherwise. */ public boolean isVerticalRotated() { return isVertical() && _isRotated; } /**
ticLabelWidth = maxTicLabelWidth(fm); int width; if (isVertical()) { if (isVerticalRotated()) { width = fm.getAscent()+fm.getHeight();
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); } }
tile = _axis.getTile(); zx = _axis.isHorizontal(); zy = _axis.isVertical(); drawZoom(_axis,_xdraw,_ydraw,zx,zy); _axis.removeMouseMotionListener(_mml);