All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.event.MouseEvent
java.lang.Object
|
+----com.bulletproof.gui.GUIEvent
|
+----com.bulletproof.gui.event.MouseEvent
- public class MouseEvent
- extends GUIEvent
The mouse event.
-
MOUSE_CLICKED
-
-
MOUSE_DOUBLECLICKED
-
-
MOUSE_DRAGGED
-
-
MOUSE_ENTERED
-
-
MOUSE_EXITED
-
-
MOUSE_PRESSED
-
-
MOUSE_RELEASED
-
-
MouseEvent(Object, int, long, int, int, int)
- Constructs a MouseEvent object with the specified source component,
type, modifiers, coordinates, and click count.
-
getTime()
- Returns the time of the event.
-
getX()
- Returns the x position of the event relative to the source component.
-
getY()
- Returns the x,y position of the event relative to the source component.
-
translatePoint(int, int)
- Translates the coordinate position of the event by x, y.
MOUSE_CLICKED
public static final int MOUSE_CLICKED
MOUSE_DRAGGED
public static final int MOUSE_DRAGGED
MOUSE_ENTERED
public static final int MOUSE_ENTERED
MOUSE_EXITED
public static final int MOUSE_EXITED
MOUSE_PRESSED
public static final int MOUSE_PRESSED
MOUSE_RELEASED
public static final int MOUSE_RELEASED
MOUSE_DOUBLECLICKED
public static final int MOUSE_DOUBLECLICKED
MouseEvent
public MouseEvent(Object source,
int id,
long when,
int modify,
int x,
int y)
- Constructs a MouseEvent object with the specified source component,
type, modifiers, coordinates, and click count.
- Parameters:
- source - the object where the event originated
getX
public int getX()
- Returns the x position of the event relative to the source component.
getY
public int getY()
- Returns the x,y position of the event relative to the source component.
getTime
public long getTime()
- Returns the time of the event.
translatePoint
public void translatePoint(int dx,
int dy)
- Translates the coordinate position of the event by x, y.
- Parameters:
- x - the x value added to the current x coordinate position
- y - the y value added to the current y coordinate position
All Packages Class Hierarchy This Package Previous Next Index