Class JDMouseEvent
java.lang.Object
java.util.EventObject
fr.esrf.tangoatk.widget.util.jdraw.JDMouseEvent
- All Implemented Interfaces:
Serializable
JDraw MouseEvent
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
JDMouseEvent
Construct a JDMouseEvent- Parameters:
source- JDObject sourcee0- Initial mouse event.
-
-
Method Details
-
getX
public int getX()- Returns:
- the horizontal x position of the intial MouseEvent.
-
getY
public int getY()- Returns:
- the vetical y position of the intial MouseEvent.
-
getClickCount
public int getClickCount()- Returns:
- the number of quick consecutive clicks of a mouse button.
-
getButton
public int getButton()- Returns:
- which, if any, of the mouse buttons has changed state.
- See Also:
-
getWhen
public long getWhen()- Returns:
- the timestamp of when this event occurred.
-
isShiftDown
public boolean isShiftDown()- Returns:
- whether or not the Shift modifier is down on this event.
-
isControlDown
public boolean isControlDown()- Returns:
- whether or not the Control modifier is down on this event.
-
isMetaDown
public boolean isMetaDown()- Returns:
- whether or not the Meta modifier is down on this event.
-
isAltDown
public boolean isAltDown()- Returns:
- whether or not the Alt modifier is down on this event.
-
isAltGraphDown
public boolean isAltGraphDown()- Returns:
- whether or not the AltGraph modifier is down on this event.
-
getModifiers
public int getModifiers()- Returns:
- the modifier mask for this event.
-