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.


Variable Index

 o MOUSE_CLICKED
 o MOUSE_DOUBLECLICKED
 o MOUSE_DRAGGED
 o MOUSE_ENTERED
 o MOUSE_EXITED
 o MOUSE_PRESSED
 o MOUSE_RELEASED

Constructor Index

 o MouseEvent(Object, int, long, int, int, int)
Constructs a MouseEvent object with the specified source component, type, modifiers, coordinates, and click count.

Method Index

 o getTime()
Returns the time of the event.
 o getX()
Returns the x position of the event relative to the source component.
 o getY()
Returns the x,y position of the event relative to the source component.
 o translatePoint(int, int)
Translates the coordinate position of the event by x, y.

Variables

 o MOUSE_CLICKED
 public static final int MOUSE_CLICKED
 o MOUSE_DRAGGED
 public static final int MOUSE_DRAGGED
 o MOUSE_ENTERED
 public static final int MOUSE_ENTERED
 o MOUSE_EXITED
 public static final int MOUSE_EXITED
 o MOUSE_PRESSED
 public static final int MOUSE_PRESSED
 o MOUSE_RELEASED
 public static final int MOUSE_RELEASED
 o MOUSE_DOUBLECLICKED
 public static final int MOUSE_DOUBLECLICKED

Constructors

 o 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

Methods

 o getX
 public int getX()
Returns the x position of the event relative to the source component.

 o getY
 public int getY()
Returns the x,y position of the event relative to the source component.

 o getTime
 public long getTime()
Returns the time of the event.

 o 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