public class JDMouseEvent
extends java.util.EventObject
| Constructor and Description |
|---|
JDMouseEvent(JDObject source,
java.awt.event.MouseEvent e0)
Construct a JDMouseEvent
|
| Modifier and Type | Method and Description |
|---|---|
int |
getButton()
Returns which, if any, of the mouse buttons has changed state.
|
int |
getClickCount()
Indicates the number of quick consecutive clicks of
a mouse button.
|
int |
getModifiers()
Returns the modifier mask for this event.
|
long |
getWhen()
Returns the timestamp of when this event occurred.
|
int |
getX()
Returns the horizontal x position of the intial MouseEvent.
|
int |
getY()
Returns the vetical y position of the intial MouseEvent.
|
boolean |
isAltDown()
Returns whether or not the Alt modifier is down on this event.
|
boolean |
isAltGraphDown()
Returns whether or not the AltGraph modifier is down on this event.
|
boolean |
isControlDown()
Returns whether or not the Control modifier is down on this event.
|
boolean |
isMetaDown()
Returns whether or not the Meta modifier is down on this event.
|
boolean |
isShiftDown()
Returns whether or not the Shift modifier is down on this event.
|
public JDMouseEvent(JDObject source, java.awt.event.MouseEvent e0)
source - JDObject sourcee0 - Initial mouse event.public int getX()
public int getY()
public int getClickCount()
public int getButton()
MouseEvent.BUTTON1,
MouseEvent.BUTTON2,
MouseEvent.BUTTON3public long getWhen()
public boolean isShiftDown()
public boolean isControlDown()
public boolean isMetaDown()
public boolean isAltDown()
public boolean isAltGraphDown()
public int getModifiers()