All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.event.MouseEvent
java.lang.Object
|
+----java.util.EventObject
|
+----java.awt.AWTEvent
|
+----java.awt.event.ComponentEvent
|
+----java.awt.event.InputEvent
|
+----java.awt.event.MouseEvent
- public class MouseEvent
- extends InputEvent
The mouse event.
-
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.
-
MouseEvent(Component, int, long, int, int, int, int, boolean)
- Constructs a MouseEvent object with the specified source component,
type, modifiers, coordinates, and click count.
-
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.
MOUSE_FIRST
Properties Public Constant
MOUSE_FIRST=int
- Marks the first integer id for the range of mouse event ids.
MOUSE_LAST
Properties Public Constant
MOUSE_LAST=int
- Marks the last integer id for the range of mouse event ids.
MOUSE_CLICKED
Properties Public Constant
MOUSE_CLICKED=int
- The mouse clicked event type.
MOUSE_PRESSED
Properties Public Constant
MOUSE_PRESSED=int
- The mouse pressed event type.
MOUSE_RELEASED
Properties Public Constant
MOUSE_RELEASED=int
- The mouse released event type.
MOUSE_MOVED
Properties Public Constant
MOUSE_MOVED=int
- The mouse moved event type.
MOUSE_ENTERED
Properties Public Constant
MOUSE_ENTERED=int
- The mouse entered event type.
MOUSE_EXITED
Properties Public Constant
MOUSE_EXITED=int
- The mouse exited event type.
MOUSE_DRAGGED
Properties Public Constant
MOUSE_DRAGGED=int
- The mouse dragged event type.
MouseEvent
method MouseEvent(source=Component, -
id=int, -
when=long, -
modifiers=int, -
x=int, -
y=int, -
clickCount=int, -
popupTrigger=boolean) public
- Constructs a MouseEvent object with the specified source component,
type, modifiers, coordinates, and click count.
- Parameters:
- source - the object where the event originated
getX
method getX() returns int public
- Returns the x position of the event relative to the source component.
getY
method getY() returns int public
- Returns the y position of the event relative to the source component.
getPoint
method getPoint() returns Point public
- Returns the x,y position of the event relative to the source component.
translatePoint
method translatePoint(x=int, -
y=int) public protect
- 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
getClickCount
method getClickCount() returns int public
- Return the number of mouse clicks associated with this event.
isPopupTrigger
method isPopupTrigger() returns boolean public
- Returns whether or not this mouse event is the popup-menu
trigger event for the platform.
paramString
method paramString() returns String public
- Overrides:
- paramString in class ComponentEvent
All Packages Class Hierarchy This Package Previous Next Index