Package org.geotools.swing.tool
Class PanTool
Object
MapMouseAdapter
CursorTool
PanTool
- All Implemented Interfaces:
- MapMouseListener
A cursor tool to pan the map pane display.
- Since:
- 2.6
- Author:
- Michael Bedward
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns false to indicate that this tool does not draw a box on the map display when the mouse is being draggedGet the mouse cursor for this toolvoidRespond to a mouse dragged event.voidRespond to a mouse button press event from the map mapPane.voidIf this button release is the end of a mouse dragged event, requests the map mapPane to repaint the displayMethods inherited from class CursorToolgetMapPane, setMapPaneMethods inherited from class MapMouseAdapteronMouseClicked, onMouseEntered, onMouseExited, onMouseMoved, onMouseWheelMoved
- 
Field Details- 
TOOL_NAMETool name
- 
TOOL_TIPTool tip text
- 
CURSOR_IMAGECursor- See Also:
 
- 
CURSOR_HOTSPOTCursor hotspot coordinates
- 
ICON_IMAGEIcon for the control- See Also:
 
 
- 
- 
Constructor Details- 
PanToolpublic PanTool()Constructor
 
- 
- 
Method Details- 
onMousePressedRespond to a mouse button press event from the map mapPane. This may signal the start of a mouse drag. Records the event's window position.- Specified by:
- onMousePressedin interface- MapMouseListener
- Overrides:
- onMousePressedin class- MapMouseAdapter
- Parameters:
- ev- the mouse event
 
- 
onMouseDraggedRespond to a mouse dragged event. CallsMapPane.moveImage(int, int)- Specified by:
- onMouseDraggedin interface- MapMouseListener
- Overrides:
- onMouseDraggedin class- MapMouseAdapter
- Parameters:
- ev- the mouse event
 
- 
onMouseReleasedIf this button release is the end of a mouse dragged event, requests the map mapPane to repaint the display- Specified by:
- onMouseReleasedin interface- MapMouseListener
- Overrides:
- onMouseReleasedin class- MapMouseAdapter
- Parameters:
- ev- the mouse event
 
- 
getCursorGet the mouse cursor for this tool- Overrides:
- getCursorin class- CursorTool
- Returns:
- the default cursor
 
- 
drawDragBoxpublic boolean drawDragBox()Returns false to indicate that this tool does not draw a box on the map display when the mouse is being dragged- Overrides:
- drawDragBoxin class- CursorTool
- Returns:
- true if this tool supports drawing a drag-box on the map; false otherwise
 
 
-