Package org.eclipse.draw2d
Class InputEvent
java.lang.Object
java.util.EventObject
org.eclipse.draw2d.InputEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
KeyEvent
,MouseEvent
The base class for Draw2d events.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.UseSWT.BUTTON_MASK
instead.static final int
Deprecated.UseSWT.BUTTON1
instead.static final int
Deprecated.UseSWT.BUTTON2
instead.static final int
Deprecated.UseSWT.BUTTON3
instead.static final int
Deprecated.UseSWT.BUTTON4
instead.static final int
Deprecated.UseSWT.BUTTON5
instead.static final int
Deprecated.UseSWT.CONTROL
instead.static final int
Deprecated.UseSWT.SHIFT
instead.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionInputEvent
(EventDispatcher dispatcher, IFigure source, int state) Constructs a new InputEvent. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
ALT
public static final int ALTDeprecated.UseSWT.ALT
instead.- See Also:
-
CONTROL
public static final int CONTROLDeprecated.UseSWT.CONTROL
instead.- See Also:
-
SHIFT
public static final int SHIFTDeprecated.UseSWT.SHIFT
instead.- See Also:
-
BUTTON1
public static final int BUTTON1Deprecated.UseSWT.BUTTON1
instead.- See Also:
-
BUTTON2
public static final int BUTTON2Deprecated.UseSWT.BUTTON2
instead.- See Also:
-
BUTTON3
public static final int BUTTON3Deprecated.UseSWT.BUTTON3
instead.- See Also:
-
BUTTON4
public static final int BUTTON4Deprecated.UseSWT.BUTTON4
instead.- See Also:
-
BUTTON5
public static final int BUTTON5Deprecated.UseSWT.BUTTON5
instead.- See Also:
-
ANY_BUTTON
public static final int ANY_BUTTONDeprecated.UseSWT.BUTTON_MASK
instead.
-
-
Constructor Details
-
InputEvent
Constructs a new InputEvent.- Parameters:
dispatcher
- the event dispatchersource
- the source of the eventstate
- the state of the keyboard modifier and mouse button mask.- See Also:
-
-
Method Details
-
consume
public void consume()Marks this event as consumed so that it doesn't get passed on to other listeners. -
getState
public int getState()Returns the event state mask, which is a bitwise OR'ing of the keyboard modifier and the mouse button mask.- Returns:
- the state
- See Also:
-
isConsumed
public boolean isConsumed()- Returns:
- whether this event has been consumed.
-
SWT.ALT
instead.