Class ZoomTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.cursortool.DragTool
com.vividsolutions.jump.workbench.ui.zoom.AbstractZoomTool
com.vividsolutions.jump.workbench.ui.zoom.ZoomTool
- All Implemented Interfaces:
CursorTool, MouseListener, MouseMotionListener, EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCursorTool
AbstractCursorTool.Listener -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIf the selection box has side length less than this value, the input will be considered to be a click rather than a box.Fields inherited from class AbstractZoomTool
auxImage, mouseWheelCount, origImage, scale, zoomToFields inherited from class DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSourceFields inherited from class AbstractCursorTool
isLinuxOS, panel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(LayerViewPanel layerViewPanel) voidprotected voidgetIcon()getName()Returns a very brief description of this CursorTool.booleanvoidvoidvoidvoidvoidvoidBegins handling of the drag.voidMethods inherited from class AbstractZoomTool
cacheImage, createImageIfNeeded, drawImage, getAnimatingZoom, getCentre, mouseWheelMoved, scaleImageAtCentre, scaleImageAtPoint, setAnimatingZoom, zoomAtMethods inherited from class DragTool
getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getShape, getViewDestination, getViewSource, modelClickBuffer, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClickMethods inherited from class AbstractCursorTool
add, allowSnapping, cancelGesture, check, cleanup, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getImage, getImagePosition, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isGestureInProgress, isRollingBackInvalidEdits, isShapeOnScreen, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setControlPressed, setFilling, setPanel, setShiftPressed, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed
-
Field Details
-
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.
-
-
Constructor Details
-
ZoomTool
-
-
Method Details
-
getIcon
- Specified by:
getIconin interfaceCursorTool- Overrides:
getIconin classAbstractZoomTool- Returns:
- null to use a default icon
-
getName
Description copied from interface:CursorToolReturns a very brief description of this CursorTool.- Specified by:
getNamein interfaceCursorTool- Overrides:
getNamein classAbstractCursorTool- Returns:
- the name of this CursorTool
-
getCursor
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractZoomTool
-
gestureFinished
- Overrides:
gestureFinishedin classAbstractZoomTool- Throws:
NoninvertibleTransformException
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classAbstractCursorTool
-
mousePressed
Description copied from class:DragToolBegins handling of the drag. Subclasses can prevent handling of the drag by overriding this method and not calling it.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classDragTool
-
isRightMouseButtonUsed
public boolean isRightMouseButtonUsed()- Specified by:
isRightMouseButtonUsedin interfaceCursorTool- Overrides:
isRightMouseButtonUsedin classAbstractCursorTool- Returns:
- true if this CursorTool uses the right mouse button; false to allow the panel to show a popup-menu on right-clicks
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classDragTool
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classDragTool
-
activate
- Specified by:
activatein interfaceCursorTool- Overrides:
activatein classAbstractCursorTool
-
deactivate
public void deactivate()- Specified by:
deactivatein interfaceCursorTool- Overrides:
deactivatein classDragTool
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classAbstractCursorTool
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classAbstractCursorTool
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classAbstractCursorTool
-