Class ZoomRealtimeTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.cursortool.DragTool
com.vividsolutions.jump.workbench.ui.zoom.AbstractZoomTool
org.openjump.core.ui.plugin.tools.ZoomRealtimeTool
- All Implemented Interfaces:
CursorTool, MouseListener, MouseMotionListener, EventListener
Zooms the image in the current task window.
Uses raster scaling operations.
- Version:
- 1.01
- Author:
- Larry Becker
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractCursorTool
AbstractCursorTool.Listener -
Field Summary
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
Methods inherited from class AbstractZoomTool
cacheImage, createImageIfNeeded, drawImage, getAnimatingZoom, getCentre, mouseWheelMoved, scaleImageAtCentre, scaleImageAtPoint, setAnimatingZoom, zoomAtMethods inherited from class DragTool
deactivate, getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mousePressed, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClickMethods inherited from class AbstractCursorTool
activate, 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, mouseClicked, mouseEntered, mouseExited, mouseMoved, name, prohibitSnapping, redrawImage, redrawShape, reportNothingToUndoYet, setColor, setControlPressed, setFilling, setPanel, setShiftPressed, setStroke, setup, snap, snap, supportsSnapping, toString, wasControlPressed, wasShiftPressed
-
Constructor Details
-
ZoomRealtimeTool
-
-
Method Details
-
getCursor
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractZoomTool
-
getIcon
- Specified by:
getIconin interfaceCursorTool- Overrides:
getIconin classAbstractZoomTool- Returns:
- null to use a default icon
-
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
-
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
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classDragTool
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classDragTool
-
getShape
-
gestureFinished
- Overrides:
gestureFinishedin classAbstractZoomTool- Throws:
NoninvertibleTransformException
-