Note
The button field is an integer that
represents the mouse button number. This is not the same
as the SWT mask constants BUTTONx.
MouseListener, MouseMoveListener, MouseTrackListener, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| public int | button
the button that was pressed or released;
|
| public int | count
the number times the mouse has been clicked, as defined by the operating system; 1 for the first click, 2 for the second click and so on. |
| pack-priv static final long | |
| public int | stateMask
the state of the keyboard modifier keys and mouse masks at the time the event was generated. |
| public int | x
the widget-relative, x coordinate of the pointer at the time the mouse button was pressed or released |
| public int | y
the widget-relative, y coordinate of the pointer at the time the mouse button was pressed or released |
| Access | Constructor and Description |
|---|---|
| public | MouseEvent(Event
the untyped event containing the information e)Constructs a new instance of this class based on the information in the given untyped event. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a string representation of the eventOverrides org. |
| button | back to summary |
|---|---|
| public int button the button that was pressed or released;
| |
| count | back to summary |
|---|---|
| public int count the number times the mouse has been clicked, as defined by the operating system; 1 for the first click, 2 for the second click and so on.
| |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| stateMask | back to summary |
|---|---|
| public int stateMask the state of the keyboard modifier keys and mouse masks at the time the event was generated. | |
| x | back to summary |
|---|---|
| public int x the widget-relative, x coordinate of the pointer at the time the mouse button was pressed or released | |
| y | back to summary |
|---|---|
| public int y the widget-relative, y coordinate of the pointer at the time the mouse button was pressed or released | |
| MouseEvent | back to summary |
|---|---|
| public MouseEvent(Event e) Constructs a new instance of this class based on the information in the given untyped event.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Returns a string containing a concise, human-readable description of the receiver. | |