MouseEvent Members

MouseEvent Members

Class Overview | This Package | All Packages

Fields
Name Description
MOUSE_CLICKED The mouse clicked event type.
MOUSE_DRAGGED The mouse dragged event type.
MOUSE_ENTERED The mouse entered event type.
MOUSE_EXITED The mouse exited event type.
MOUSE_FIRST Marks the first integer id for the range of mouse event ids.
MOUSE_LAST Marks the last integer id for the range of mouse event ids.
MOUSE_MOVED The mouse moved event type.
MOUSE_PRESSED The mouse pressed event type.
MOUSE_RELEASED The mouse released event type.

Constructors
Name Description
MouseEvent(Component, int, long, int, int, int, int, boolean) Constructs a MouseEvent object with the specified source component, type, modifiers, coordinates, and click count.

Methods
Name Description
getClickCount() Return the number of mouse clicks associated with this event.
getPoint() Returns the x,y position of the event relative to the source component.
getX() Returns the x position of the event relative to the source component.
getY() Returns the y position of the event relative to the source component.
isPopupTrigger() Returns whether or not this mouse event is the popup-menu trigger event for the platform.
paramString()  
translatePoint(int, int) Translates the coordinate position of the event by x, y.