com.vividsolutions.jump.workbench.ui.zoom
Class PanTool
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.PanTool
- All Implemented Interfaces:
- CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener
public class PanTool
- extends AbstractZoomTool
Pans the image in the current task window.
Image handling is designed to minimize flickering and latency.
- Version:
- 1.1
- Author:
- Jon Aquino
| 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, getName, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, 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 |
PanTool
public PanTool()
getCursor
public java.awt.Cursor getCursor()
- Specified by:
getCursor in interface CursorTool- Overrides:
getCursor in class AbstractZoomTool
getIcon
public javax.swing.Icon getIcon()
- Specified by:
getIcon in interface CursorTool- Overrides:
getIcon in class AbstractZoomTool
- Returns:
- null to use a default icon
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
- Overrides:
gestureFinished in class AbstractZoomTool
- Throws:
java.awt.geom.NoninvertibleTransformException