|
Eclipse Draw2d 3.8.0.201206011245 |
|||||||||
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
public abstract class InputEvent
The base class for Draw2d events.
Field Summary | |
---|---|
static int |
ALT
Deprecated. Use SWT.ALT instead. |
static int |
ANY_BUTTON
Deprecated. Use SWT.BUTTON_MASK instead. |
static int |
BUTTON1
Deprecated. Use SWT.BUTTON1 instead. |
static int |
BUTTON2
Deprecated. Use SWT.BUTTON2 instead. |
static int |
BUTTON3
Deprecated. Use SWT.BUTTON3 instead. |
static int |
BUTTON4
Deprecated. Use SWT.BUTTON4 instead. |
static int |
BUTTON5
Deprecated. Use SWT.BUTTON5 instead. |
static int |
CONTROL
Deprecated. Use SWT.CONTROL instead. |
static int |
SHIFT
Deprecated. Use SWT.SHIFT instead. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
InputEvent(EventDispatcher dispatcher,
IFigure source,
int state)
Constructs a new InputEvent. |
Method Summary | |
---|---|
void |
consume()
Marks this event as consumed so that it doesn't get passed on to other listeners. |
int |
getState()
Returns the event state mask, which is a bitwise OR'ing of the keyboard modifier and the mouse button mask. |
boolean |
isConsumed()
|
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ALT
SWT.ALT
instead.public static final int CONTROL
SWT.CONTROL
instead.public static final int SHIFT
SWT.SHIFT
instead.public static final int BUTTON1
SWT.BUTTON1
instead.public static final int BUTTON2
SWT.BUTTON2
instead.public static final int BUTTON3
SWT.BUTTON3
instead.public static final int BUTTON4
SWT.BUTTON4
instead.public static final int BUTTON5
SWT.BUTTON5
instead.public static final int ANY_BUTTON
SWT.BUTTON_MASK
instead.BUTTON1
, BUTTON2
, BUTTON3
,
BUTTON4
and BUTTON5
Constructor Detail |
---|
public InputEvent(EventDispatcher dispatcher, IFigure source, int state)
dispatcher
- the event dispatchersource
- the source of the eventstate
- the state of the keyboard modifier and mouse button mask.SWT.MODIFIER_MASK
,
SWT.BUTTON_MASK
Method Detail |
---|
public void consume()
public int getState()
SWT.MODIFIER_MASK
,
SWT.BUTTON_MASK
public boolean isConsumed()
|
Eclipse Draw2d 3.8.0.201206011245 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |