|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.gui.tool.maplistener.MapToolListener
This is the mouse listener used by the MapControl
to perform actions depending on the tool that is active in each moment.
It keeps a changing reference to the current behavior which in turn is linked
to the current tool listener.
ToolListener
,
Behavior
,
MapControl
,
TBButton
Constructor Summary | |
MapToolListener(MapControl _mc)
Constructor. |
Method Summary | |
TBButton |
getCurrentTool()
Returns the active tool. |
void |
mouseClicked(java.awt.event.MouseEvent arg0)
All mouse events are delivered to the behavior, who will process it depending on the functionality of the current tool. |
void |
mouseDragged(java.awt.event.MouseEvent arg0)
All mouse events are delivered to the behavior, who will process it depending on the functionality of the current tool. |
void |
mouseEntered(java.awt.event.MouseEvent arg0)
|
void |
mouseExited(java.awt.event.MouseEvent arg0)
|
void |
mouseMoved(java.awt.event.MouseEvent arg0)
All mouse events are delivered to the behavior, who will process it depending on the functionality of the current tool. |
void |
mousePressed(java.awt.event.MouseEvent arg0)
All mouse events are delivered to the behavior, who will process it depending on the functionality of the current tool. |
void |
mouseReleased(java.awt.event.MouseEvent arg0)
All mouse events are delivered to the behavior, who will process it depending on the functionality of the current tool. |
void |
setTool(TBButton tb,
boolean clearStatusBar)
Sets the current tool. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MapToolListener(MapControl _mc)
_mc
- the MapControl
object associated with this listener.Method Detail |
public TBButton getCurrentTool()
Only tools of type TBSelectableTool
(subclass of
TBButton
) registers listeners, so only this
objects will be real active tools
TBButton
)public void setTool(TBButton tb, boolean clearStatusBar)
tb
- the new tool to be set as current toolclearStatusBar
- whether the status bar has to be cleared when this tool
becomes the active tool.public void mouseClicked(java.awt.event.MouseEvent arg0)
mouseClicked
in interface java.awt.event.MouseListener
arg0
- the mouose event that has to be managed by the behavir currentpublic void mousePressed(java.awt.event.MouseEvent arg0)
mousePressed
in interface java.awt.event.MouseListener
arg0
- the mouose event that has to be managed by the behavir currentpublic void mouseReleased(java.awt.event.MouseEvent arg0)
mouseReleased
in interface java.awt.event.MouseListener
arg0
- the mouose event that has to be managed by the behavir currentpublic void mouseEntered(java.awt.event.MouseEvent arg0)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent arg0)
mouseExited
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent arg0)
mouseDragged
in interface java.awt.event.MouseMotionListener
arg0
- the mouose event that has to be managed by the behavir currentpublic void mouseMoved(java.awt.event.MouseEvent arg0)
mouseMoved
in interface java.awt.event.MouseMotionListener
arg0
- the mouose event that has to be managed by the behavir current
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |