|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.swing.tool.MapToolManager
public class MapToolManager
Receives mouse events from a JMapPane instance, converts them to JMapPaneMouseEvents, and sends these to the active map pane tools.
Constructor Summary | |
---|---|
MapToolManager(JMapPane pane)
Constructor |
Method Summary | |
---|---|
boolean |
addMouseListener(MapMouseListener listener)
Add a listener for JMapPaneMouseEvents |
CursorTool |
getCursorTool()
Get the active cursor tool |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
|
boolean |
removeMouseListener(MapMouseListener listener)
Remove a MapMouseListener from the active listeners |
boolean |
setCursorTool(CursorTool tool)
Set the active cursor tool |
void |
setNoCursorTool()
Unset the current cursor tool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapToolManager(JMapPane pane)
pane
- the map pane that owns this listenerMethod Detail |
---|
public void setNoCursorTool()
public boolean setCursorTool(CursorTool tool)
tool
- the tool to set
java.lang.IllegalArgumentException
- if the tool argument is nullpublic CursorTool getCursorTool()
null
if no
tool is activepublic boolean addMouseListener(MapMouseListener listener)
listener
- the listener to add
java.lang.IllegalArgumentException
- if the tool argument is nullpublic boolean removeMouseListener(MapMouseListener listener)
listener
- the listener to remove
java.lang.IllegalArgumentException
- if the tool argument is nullpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |