|
org.eclipse.draw2d
Class MouseEvent
java.lang.Object
java.util.EventObject
org.eclipse.draw2d.InputEvent
org.eclipse.draw2d.MouseEvent
-
All Implemented Interfaces:
- java.io.Serializable
- public class MouseEvent
- extends
InputEvent
An event caused by the user interacting with the mouse.
-
See Also:
-
Serialized Form
Field Summary
|
int
|
button
The button that was pressed or released: {1, 2, 3}. |
int
|
x
The X coordinate of the mouse event. |
int
|
y
The Y coordinate of the mouse event. |
Fields inherited from class java.util.EventObject
|
source
|
Methods inherited from class java.util.EventObject
|
getSource
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
|
x
public int x
- The X coordinate of the mouse event.
y
public int y
- The Y coordinate of the mouse event.
button
public int button
- The button that was pressed or released: {1, 2, 3}.
getLocation
public
Point getLocation()
-
-
Returns:
- the location of this mouse event
toString
public java.lang.String toString()
-
-
See Also:
-
Object.toString()
Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.
|
|