public class MouseEvent extends InputEvent
| Modifier and Type | Field and Description |
|---|---|
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.
|
ALT, ANY_BUTTON, BUTTON1, BUTTON2, BUTTON3, BUTTON4, BUTTON5, CONTROL, SHIFT| Constructor and Description |
|---|
MouseEvent(EventDispatcher dispatcher,
IFigure source,
MouseEvent me)
Constructs a new MouseEvent.
|
MouseEvent(int x,
int y,
EventDispatcher dispatcher,
IFigure f,
int button,
int stateMask)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Point |
getLocation() |
java.lang.String |
toString() |
consume, getState, isConsumedpublic int x
public int y
public int button
public MouseEvent(EventDispatcher dispatcher, IFigure source, MouseEvent me)
dispatcher - the event dispatchersource - the source of the eventme - an SWT mouse event used to supply the state mask, button and
positionpublic 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 - public Point getLocation()
public java.lang.String toString()
toString in class java.util.EventObjectObject.toString()Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.