charva.awt.event

Class MouseEvent


public class MouseEvent
extends InputEvent

An event which encapsulates information about a mouse-click.

Field Summary

static int
BUTTON1
static int
BUTTON2
static int
BUTTON3
static int
MOUSE_CLICKED
static int
MOUSE_PRESSED
static int
MOUSE_RELEASED
protected int
button
Specified which button was pressed, released or clicked.
protected int
clickcount
protected int
modifiers
Specifies whether the button was pressed, released or clicked.
protected int
x
protected int
y

Fields inherited from class charva.awt.event.AWTEvent

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 Summary

MouseEvent(Component source_, int modifiers_, int x_, int y_, int clickcount_, int button_)

Method Summary

int
getButton()
int
getClickCount()
int
getModifiers()
int
getX()
int
getY()
String
toString()

Methods inherited from class charva.awt.event.InputEvent

consume, isConsumed

Methods inherited from class charva.awt.event.AWTEvent

getID

Field Details

BUTTON1

public static final int BUTTON1
Field Value:
1

BUTTON2

public static final int BUTTON2
Field Value:
2

BUTTON3

public static final int BUTTON3
Field Value:
3

MOUSE_CLICKED

public static final int MOUSE_CLICKED
Field Value:
102

MOUSE_PRESSED

public static final int MOUSE_PRESSED
Field Value:
100

MOUSE_RELEASED

public static final int MOUSE_RELEASED
Field Value:
101

button

protected int button
Specified which button was pressed, released or clicked.

clickcount

protected int clickcount

modifiers

protected int modifiers
Specifies whether the button was pressed, released or clicked.

x

protected int x

y

protected int y

Constructor Details

MouseEvent

public MouseEvent(Component source_,
                  int modifiers_,
                  int x_,
                  int y_,
                  int clickcount_,
                  int button_)

Method Details

getButton

public int getButton()

getClickCount

public int getClickCount()

getModifiers

public int getModifiers()

getX

public int getX()

getY

public int getY()

toString

public String toString()