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,MouseListener,MouseMotionListener,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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.zoom.AbstractZoomTool
auxImage, mouseWheelCount, origImage, scale, zoomTo
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool
isLinuxOS, panel
-
-
Constructor Summary
Constructors Constructor Description PanTool(WorkbenchContext workbenchContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgestureFinished()CursorgetCursor()IcongetIcon()protected ShapegetShape(Point2D source, Point2D destination)voidmouseDragged(MouseEvent e)voidmouseReleased(MouseEvent e)-
Methods inherited from class com.vividsolutions.jump.workbench.ui.zoom.AbstractZoomTool
cacheImage, createImageIfNeeded, drawImage, getAnimatingZoom, getCentre, mouseWheelMoved, scaleImageAtCentre, scaleImageAtPoint, setAnimatingZoom, zoomAt
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.DragTool
deactivate, 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, clearImage, clearShape, componentWithFocusIsHandledByCursorTools, createCursor, createCursor, createCursor, createStandardSnappingPolicies, drawImageXOR, drawImageXOR, drawShapeXOR, drawShapeXOR, execute, execute, fireGestureFinished, getColor, getImage, getImagePosition, getName, getPanel, getPanel, getSnapManager, getStroke, getTaskFrame, getWorkbench, getWorkbenchContext, isGestureInProgress, isRightMouseButtonUsed, 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 Detail
-
PanTool
public PanTool(WorkbenchContext workbenchContext)
-
-
Method Detail
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractZoomTool
-
getIcon
public Icon getIcon()
- Specified by:
getIconin interfaceCursorTool- Overrides:
getIconin classAbstractZoomTool- Returns:
- null to use a default icon
-
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classDragTool
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classDragTool
-
gestureFinished
protected void gestureFinished() throws NoninvertibleTransformException- Overrides:
gestureFinishedin classAbstractZoomTool- Throws:
NoninvertibleTransformException
-
-