org.openjump.core.ui.plugin.tools
Class ZoomRealtimeTool
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
com.vividsolutions.jump.workbench.ui.cursortool.DragTool
org.openjump.core.ui.plugin.tools.ZoomRealtimeTool
- All Implemented Interfaces:
- CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
public class ZoomRealtimeTool
- extends DragTool
Zooms the image in the current task window.
Uses raster scaling operations.
- Version:
- 1.01
- Author:
- Larry Becker
| Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool |
getBoxInModelCoordinates, getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mousePressed, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClick |
| Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool |
activate, add, allowSnapping, cancelGesture, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, mouseMoved, name, redrawShape, reportNothingToUndoYet, setColor, setFilling, setStroke, setStrokeWidth, setup, snap, snap, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ZoomRealtimeTool
public ZoomRealtimeTool()
getCursor
public java.awt.Cursor getCursor()
- Specified by:
getCursor in interface CursorTool- Overrides:
getCursor in class AbstractCursorTool
getIcon
public javax.swing.Icon getIcon()
- Returns:
- null to use a default icon
isRightMouseButtonUsed
public boolean isRightMouseButtonUsed()
- Specified by:
isRightMouseButtonUsed in interface CursorTool- Overrides:
isRightMouseButtonUsed in class AbstractCursorTool
- Returns:
- true if this CursorTool uses the right mouse button; false
to allow the panel to show a popup-menu on right-clicks
getName
public java.lang.String getName()
- Description copied from interface:
CursorTool
- Returns a very brief description of this CursorTool.
- Specified by:
getName in interface CursorTool- Overrides:
getName in class AbstractCursorTool
- Returns:
- the name of this CursorTool
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener- Overrides:
mouseDragged in class DragTool
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased in interface java.awt.event.MouseListener- Overrides:
mouseReleased in class DragTool
getShape
protected java.awt.Shape getShape(java.awt.geom.Point2D source,
java.awt.geom.Point2D destination)
- Overrides:
getShape in class DragTool
- Returns:
- null if nothing should be drawn
gestureFinished
protected void gestureFinished()
throws java.awt.geom.NoninvertibleTransformException
- Specified by:
gestureFinished in class AbstractCursorTool
- Throws:
java.awt.geom.NoninvertibleTransformException