|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.gui.tool.behavior.Behavior
es.prodevelop.gvsig.mobile.gui.tool.behavior.RectangleBehavior
This behavior class is used when the tool needs to know the rectangle defined with a drag and drop process. So it applies to tools like zoom to rectangle or select by rectangle.
RectangleToolListener
Constructor Summary | |
RectangleBehavior(RectangleToolListener l)
COnstructor. |
Method Summary | |
java.awt.Cursor |
getCursor()
Overrides ancestor method in case another cursor has to be used when the asscodiated tool is in use. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
This behavior class has to remember the starting point of drag and drop processes. |
void |
mousePressed(java.awt.event.MouseEvent e)
This behavior class has to remember the starting point of drag and drop processes. |
void |
mouseReleased(java.awt.event.MouseEvent e)
This behavior class has to remember the starting point of drag and drop processes. |
Methods inherited from class es.prodevelop.gvsig.mobile.gui.tool.behavior.Behavior |
mouseEntered, mouseExited, mouseMoved |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RectangleBehavior(RectangleToolListener l)
l
- the listener which will be notified with rectangle-like
events.Method Detail |
public java.awt.Cursor getCursor()
getCursor
in class Behavior
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class Behavior
e
- the mouse event that could be the start of a drag and drop process.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class Behavior
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class Behavior
e
- the mouse event that could be the end of a drag and drop process.public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class Behavior
e
- a mouse event in the middle of a drag and drop process.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |