public class ZoomTool extends AbstractZoomTool
AbstractCursorTool.Listener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ZOOM_TOOL_NAME
If the selection box has side length less than this value, the input
will be considered to be a click rather than a box.
|
auxImage, mouseWheelCount, origImage, scale, zoomTo
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
isLinuxOS, panel
Constructor and Description |
---|
ZoomTool() |
Modifier and Type | Method and Description |
---|---|
void |
activate(LayerViewPanel layerViewPanel) |
void |
deactivate() |
protected void |
gestureFinished() |
java.awt.Cursor |
getCursor() |
javax.swing.Icon |
getIcon() |
java.lang.String |
getName()
Returns a very brief description of this CursorTool.
|
boolean |
isRightMouseButtonUsed() |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e)
Begins handling of the drag.
|
void |
mouseReleased(java.awt.event.MouseEvent e) |
cacheImage, createImageIfNeeded, drawImage, getAnimatingZoom, getCentre, mouseWheelMoved, scaleImageAtCentre, scaleImageAtPoint, setAnimatingZoom, zoomAt
getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getShape, getViewDestination, getViewSource, modelClickBuffer, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClick
add, allowSnapping, cancelGesture, check, cleanup, clearImage, clearShape, createCursor, createCursor, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getImage, getImagePosition, getPanel, getPanel, getSnapManager, getTaskFrame, getWorkbench, getWorkbenchFrame, isGestureInProgress, isRollingBackInvalidEdits, isShapeOnScreen, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setFilling, setPanel, setStroke, setStrokeWidth, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame
public static final java.lang.String ZOOM_TOOL_NAME
public javax.swing.Icon getIcon()
getIcon
in interface CursorTool
getIcon
in class AbstractZoomTool
public java.lang.String getName()
CursorTool
getName
in interface CursorTool
getName
in class AbstractCursorTool
public java.awt.Cursor getCursor()
getCursor
in interface CursorTool
getCursor
in class AbstractZoomTool
protected void gestureFinished() throws java.awt.geom.NoninvertibleTransformException
gestureFinished
in class AbstractZoomTool
java.awt.geom.NoninvertibleTransformException
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class AbstractCursorTool
public void mousePressed(java.awt.event.MouseEvent e)
DragTool
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class DragTool
public boolean isRightMouseButtonUsed()
isRightMouseButtonUsed
in interface CursorTool
isRightMouseButtonUsed
in class AbstractCursorTool
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class DragTool
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class DragTool
public void activate(LayerViewPanel layerViewPanel)
activate
in interface CursorTool
activate
in class AbstractCursorTool
public void deactivate()
deactivate
in interface CursorTool
deactivate
in class DragTool
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
mouseEntered
in class AbstractCursorTool
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class AbstractCursorTool
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class AbstractCursorTool