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 intDeprecated.static final intDeprecated.UseSWT.BUTTON_MASKinstead.static final intDeprecated.UseSWT.BUTTON1instead.static final intDeprecated.UseSWT.BUTTON2instead.static final intDeprecated.UseSWT.BUTTON3instead.static final intDeprecated.UseSWT.BUTTON4instead.static final intDeprecated.UseSWT.BUTTON5instead.static final intDeprecated.UseSWT.CONTROLinstead.static final intDeprecated.UseSWT.SHIFTinstead.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.ALTinstead.- See Also:
-
CONTROL
public static final int CONTROLDeprecated.UseSWT.CONTROLinstead.- See Also:
-
SHIFT
public static final int SHIFTDeprecated.UseSWT.SHIFTinstead.- See Also:
-
BUTTON1
public static final int BUTTON1Deprecated.UseSWT.BUTTON1instead.- See Also:
-
BUTTON2
public static final int BUTTON2Deprecated.UseSWT.BUTTON2instead.- See Also:
-
BUTTON3
public static final int BUTTON3Deprecated.UseSWT.BUTTON3instead.- See Also:
-
BUTTON4
public static final int BUTTON4Deprecated.UseSWT.BUTTON4instead.- See Also:
-
BUTTON5
public static final int BUTTON5Deprecated.UseSWT.BUTTON5instead.- See Also:
-
ANY_BUTTON
public static final int ANY_BUTTONDeprecated.UseSWT.BUTTON_MASKinstead.
-
-
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.ALTinstead.