|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMapMouseAdapter
CursorTool
InfoTool
public class InfoTool
A cursor tool to retrieve information about features that the user clicks on with the mouse.
Field Summary | |
---|---|
static Point |
CURSOR_HOTSPOT
Cursor hotspot coordinates |
static String |
CURSOR_IMAGE
Cursor |
static double |
DEFAULT_DISTANCE_FRACTION
Default distance fraction. |
static String |
ICON_IMAGE
Icon for the control |
static String |
TOOL_NAME
The tool name |
static String |
TOOL_TIP
Tool tip text |
Constructor Summary | |
---|---|
InfoTool()
Constructor |
Method Summary | |
---|---|
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. |
void |
onMouseClicked(MapMouseEvent ev)
Respond to a mouse click event received from the map pane |
void |
onReporterClosed(WindowEvent ev)
Called when a JTextReporter frame that was being used by this tool
is closed by the user |
Methods inherited from class CursorTool |
---|
getMapPane, setMapPane |
Methods inherited from class MapMouseAdapter |
---|
onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onMouseWheelMoved |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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 static final double DEFAULT_DISTANCE_FRACTION
Constructor Detail |
---|
public InfoTool()
Method Detail |
---|
public void onMouseClicked(MapMouseEvent ev)
MapMouseAdapter
onMouseClicked
in interface MapMouseListener
onMouseClicked
in class MapMouseAdapter
ev
- the mouse eventpublic Cursor getCursor()
CursorTool
getCursor
in class CursorTool
public boolean drawDragBox()
CursorTool
drawDragBox
in class CursorTool
public void onReporterClosed(WindowEvent ev)
JTextReporter
frame that was being used by this tool
is closed by the user
onReporterClosed
in interface TextReporterListener
ev
- event published by the JTextReporter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |