|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.gui.tool.event.RectangleEvent
Utility class to encapsulate mouse events, used to send info between behavior classes and tool listeners.
RectangleBehavior
,
RectangleToolListener
Constructor Summary | |
RectangleEvent(java.awt.Point p1,
java.awt.Point p2,
java.awt.event.MouseEvent e)
Constructor. |
Method Summary | |
java.awt.event.MouseEvent |
getEvent()
Gets the original mouse event. |
java.awt.Rectangle |
getRectangle()
Gets the rectangle defined by the start and end points. |
void |
setEndPoint(java.awt.Point p)
Sets the final point. |
void |
setStartPoint(java.awt.Point p)
Sets the initial point. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RectangleEvent(java.awt.Point p1, java.awt.Point p2, java.awt.event.MouseEvent e)
p1
- the starting point on which the user has clickedp2
- the final point, when the user has lifted the mousee
- the original java mouse event.Method Detail |
public java.awt.Rectangle getRectangle()
public void setStartPoint(java.awt.Point p)
p
- the initial point where the user has clicked.public void setEndPoint(java.awt.Point p)
p
- the final point where the user has lifted the mouse.public java.awt.event.MouseEvent getEvent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |