public class PanTool extends CursorTool
| Modifier and Type | Field and Description |
|---|---|
static Point |
CURSOR_HOTSPOT
Cursor hotspot coordinates
|
static String |
CURSOR_IMAGE
Cursor
|
static String |
ICON_IMAGE
Icon for the control
|
static String |
TOOL_NAME
Tool name
|
static String |
TOOL_TIP
Tool tip text
|
| Constructor and Description |
|---|
PanTool()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
drawDragBox()
Returns false to indicate that this tool does not draw a box on the map display when the
mouse is being dragged
|
Cursor |
getCursor()
Get the mouse cursor for this tool
|
void |
onMouseDragged(MapMouseEvent ev)
Respond to a mouse dragged event.
|
void |
onMousePressed(MapMouseEvent ev)
Respond to a mouse button press event from the map mapPane.
|
void |
onMouseReleased(MapMouseEvent ev)
If this button release is the end of a mouse dragged event, requests the map mapPane to
repaint the display
|
getMapPane, setMapPaneonMouseClicked, onMouseEntered, onMouseExited, onMouseMoved, onMouseWheelMovedpublic static final String TOOL_NAME
public static final String TOOL_TIP
public static final String CURSOR_IMAGE
public static final Point CURSOR_HOTSPOT
public static final String ICON_IMAGE
public void onMousePressed(MapMouseEvent ev)
onMousePressed in interface MapMouseListeneronMousePressed in class MapMouseAdapterev - the mouse eventpublic void onMouseDragged(MapMouseEvent ev)
org.geotools.swing.MapPane#moveImage()onMouseDragged in interface MapMouseListeneronMouseDragged in class MapMouseAdapterev - the mouse eventpublic void onMouseReleased(MapMouseEvent ev)
onMouseReleased in interface MapMouseListeneronMouseReleased in class MapMouseAdapterev - the mouse eventpublic Cursor getCursor()
getCursor in class CursorToolpublic boolean drawDragBox()
drawDragBox in class CursorToolCopyright © 1996–2019 Geotools. All rights reserved.