public abstract class CursorTool extends MapMouseAdapter
Constructor and Description |
---|
CursorTool() |
Modifier and Type | Method and Description |
---|---|
boolean |
drawDragBox()
Query if the tool is one that draws a box on the map display when the mouse is being dragged
(eg. to indicate a zoom area).
|
Cursor |
getCursor()
Get the cursor for this tool.
|
MapPane |
getMapPane()
Get the map pane that this tool is servicing
|
void |
setMapPane(MapPane pane)
Set the map pane that this cursor tool is associated with
|
onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onMouseWheelMoved
public void setMapPane(MapPane pane)
pane
- the map paneIllegalArgumentException
- if mapPane is nullpublic MapPane getMapPane()
public Cursor getCursor()
public boolean drawDragBox()
Copyright © 1996–2019 Geotools. All rights reserved.