public class FrameworkMouseEvent extends Event
Modifier and Type | Field and Description |
---|---|
static int |
BUTTON1
Indicates mouse button #1; used by
getButton() . |
static int |
BUTTON2
Indicates mouse button #2; used by
getButton() . |
static int |
BUTTON3
Indicates mouse button #3; used by
getButton() . |
static int |
MOUSE_CLICKED
The "mouse clicked" event.
|
static int |
MOUSE_DRAGGED
The "mouse dragged" event.
|
static int |
MOUSE_ENTERED
The "mouse entered" event.
|
static int |
MOUSE_EXITED
The "mouse exited" event.
|
static int |
MOUSE_FIRST |
static int |
MOUSE_LAST
The last number in the range of ids used for mouse events.
|
static int |
MOUSE_MOVED
The "mouse moved" event.
|
static int |
MOUSE_PRESSED
The "mouse pressed" event.
|
static int |
MOUSE_RELEASED
The "mouse released" event.
|
static int |
MOUSE_WHEEL
The "mouse wheel" event.
|
static int |
NOBUTTON
Indicates no mouse buttons; used by
getButton() . |
java.lang.Object |
widget |
Constructor and Description |
---|
FrameworkMouseEvent(int button,
int index,
int type,
int x,
int y) |
Modifier and Type | Method and Description |
---|---|
int |
getButton() |
int |
getClickCount() |
static java.lang.String |
getEventName(int eventType) |
int |
getID() |
Point |
getPoint()
Constructs and initializes a point at the specified
(x,y) location in the coordinate space. |
int |
getX() |
int |
getY() |
void |
setSource(java.lang.Object source) |
public static final int MOUSE_FIRST
public static final int MOUSE_LAST
public static final int MOUSE_CLICKED
MouseEvent
occurs when a mouse button is pressed and released.public static final int MOUSE_PRESSED
MouseEvent
occurs when a mouse button is pushed down.public static final int MOUSE_RELEASED
MouseEvent
occurs when a mouse button is let up.public static final int MOUSE_MOVED
MouseEvent
occurs when the mouse position changes.public static final int MOUSE_ENTERED
MouseEvent
occurs when the mouse cursor enters the unobscured part of component's
geometry.public static final int MOUSE_EXITED
MouseEvent
occurs when the mouse cursor exits the unobscured part of component's
geometry.public static final int MOUSE_DRAGGED
MouseEvent
occurs when the mouse position changes while a mouse button is pressed.public static final int MOUSE_WHEEL
MouseWheelEvent
.
It occurs when a mouse equipped with a wheel has its wheel rotated.public static final int NOBUTTON
getButton()
.public static final int BUTTON1
getButton()
.public static final int BUTTON2
getButton()
.public static final int BUTTON3
getButton()
.public java.lang.Object widget
public FrameworkMouseEvent(int button, int index, int type, int x, int y)
public int getButton()
public int getID()
public int getX()
public int getY()
public Point getPoint()
(x,y)
location in the coordinate space.x
- the X coordinate of the newly constructed Point
y
- the Y coordinate of the newly constructed Point
public int getClickCount()
public static java.lang.String getEventName(int eventType)
public void setSource(java.lang.Object source)