charva.awt.event
public class MouseEvent extends InputEvent
Modifier and Type | Field and Description |
---|---|
protected int |
button
Specified which button was pressed, released or clicked.
|
static int |
BUTTON1 |
static int |
BUTTON2 |
static int |
BUTTON3 |
protected int |
clickcount |
protected int |
modifiers
Specifies whether the button was pressed, released or clicked.
|
static int |
MOUSE_CLICKED |
static int |
MOUSE_PRESSED |
static int |
MOUSE_RELEASED |
protected int |
x |
protected int |
y |
ACTION_PERFORMED, ADJUSTMENT_EVENT, FOCUS_GAINED, FOCUS_LOST, GARBAGE_COLLECTION, INVOCATION_EVENT, ITEM_STATE_CHANGED, KEY_PRESSED, KEY_TYPED, LIST_SELECTION, MOUSE_EVENT, PAINT_EVENT, RESERVED_ID_MAX, SCROLL_EVENT, SYNC_EVENT, WINDOW_CLOSING, WINDOW_OPENED
Constructor and Description |
---|
MouseEvent(Component source_,
int modifiers_,
int x_,
int y_,
int clickcount_,
int button_) |
Modifier and Type | Method and Description |
---|---|
int |
getButton() |
int |
getClickCount() |
int |
getModifiers() |
int |
getX() |
int |
getY() |
java.lang.String |
toString() |
consume, isConsumed
protected int modifiers
protected int x
protected int y
protected int button
protected int clickcount
public static final int BUTTON1
public static final int BUTTON2
public static final int BUTTON3
public static final int MOUSE_PRESSED
public static final int MOUSE_RELEASED
public static final int MOUSE_CLICKED
public MouseEvent(Component source_, int modifiers_, int x_, int y_, int clickcount_, int button_)