public class MouseEvent extends Event
Modifier and Type | Field and Description |
---|---|
static int |
CLICK |
static int |
DRAG |
static int |
ENTER |
static int |
EXIT |
static int |
MOVE |
static int |
PRESS |
static int |
RELEASE |
static int |
WHEEL |
Constructor and Description |
---|
MouseEvent(java.lang.Object nativeObject,
long millis,
int action,
int modifiers,
int x,
int y,
int button,
int count) |
Modifier and Type | Method and Description |
---|---|
float |
getAmount()
Deprecated.
|
int |
getButton()
Which button was pressed, either LEFT, CENTER, or RIGHT.
|
int |
getClickCount()
Deprecated.
|
int |
getCount()
Number of clicks for mouse button events, or the number of steps (positive
or negative depending on direction) for a mouse wheel event.
|
int |
getX() |
int |
getY() |
java.lang.String |
toString() |
getAction, getFlavor, getMillis, getModifiers, getNative, isAltDown, isControlDown, isMetaDown, isShiftDown
public static final int PRESS
public static final int RELEASE
public static final int CLICK
public static final int DRAG
public static final int MOVE
public static final int ENTER
public static final int EXIT
public static final int WHEEL
public MouseEvent(java.lang.Object nativeObject, long millis, int action, int modifiers, int x, int y, int button, int count)
public int getX()
public int getY()
public int getButton()
@Deprecated public int getClickCount()
@Deprecated public float getAmount()
public int getCount()
public java.lang.String toString()
toString
in class java.lang.Object