|
Eclipse Draw2d 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.eclipse.draw2d.InputEvent
org.eclipse.draw2d.MouseEvent
public class MouseEvent
An event caused by the user interacting with the mouse.
| 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 org.eclipse.draw2d.InputEvent |
|---|
ALT, ANY_BUTTON, BUTTON1, BUTTON2, BUTTON3, BUTTON4, BUTTON5, CONTROL, SHIFT |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
MouseEvent(EventDispatcher dispatcher,
IFigure source,
org.eclipse.swt.events.MouseEvent me)
Constructs a new MouseEvent. |
|
MouseEvent(int x,
int y,
EventDispatcher dispatcher,
IFigure f,
int button,
int stateMask)
Deprecated. Use MouseEvent(EventDispatcher, IFigure, org.eclipse.swt.events.MouseEvent)
instead. |
|
| Method Summary | |
|---|---|
Point |
getLocation()
|
String |
toString()
|
| Methods inherited from class org.eclipse.draw2d.InputEvent |
|---|
consume, getState, isConsumed |
| 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 |
| Field Detail |
|---|
public int x
public int y
public int button
| Constructor Detail |
|---|
public MouseEvent(EventDispatcher dispatcher,
IFigure source,
org.eclipse.swt.events.MouseEvent me)
dispatcher - the event dispatchersource - the source of the eventme - an SWT mouse event used to supply the state mask, button and
position
public MouseEvent(int x,
int y,
EventDispatcher dispatcher,
IFigure f,
int button,
int stateMask)
MouseEvent(EventDispatcher, IFigure, org.eclipse.swt.events.MouseEvent)
instead.
x - y - dispatcher - f - button - stateMask - | Method Detail |
|---|
public Point getLocation()
public String toString()
toString in class EventObjectObject.toString()
|
Eclipse Draw2d 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||