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 SummaryFieldsModifier 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.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionInputEvent(EventDispatcher dispatcher, IFigure source, int state) Constructs a new InputEvent.
- 
Method SummaryMethods inherited from class java.util.EventObjectgetSource, toString
- 
Field Details- 
ALTpublic static final int ALTDeprecated.UseSWT.ALTinstead.- See Also:
 
- 
CONTROLpublic static final int CONTROLDeprecated.UseSWT.CONTROLinstead.- See Also:
 
- 
SHIFTpublic static final int SHIFTDeprecated.UseSWT.SHIFTinstead.- See Also:
 
- 
BUTTON1public static final int BUTTON1Deprecated.UseSWT.BUTTON1instead.- See Also:
 
- 
BUTTON2public static final int BUTTON2Deprecated.UseSWT.BUTTON2instead.- See Also:
 
- 
BUTTON3public static final int BUTTON3Deprecated.UseSWT.BUTTON3instead.- See Also:
 
- 
BUTTON4public static final int BUTTON4Deprecated.UseSWT.BUTTON4instead.- See Also:
 
- 
BUTTON5public static final int BUTTON5Deprecated.UseSWT.BUTTON5instead.- See Also:
 
- 
ANY_BUTTONpublic static final int ANY_BUTTONDeprecated.UseSWT.BUTTON_MASKinstead.
 
- 
- 
Constructor Details- 
InputEventConstructs a new InputEvent.- Parameters:
- dispatcher- the event dispatcher
- source- the source of the event
- state- the state of the keyboard modifier and mouse button mask.
- See Also:
 
 
- 
- 
Method Details- 
consumepublic void consume()Marks this event as consumed so that it doesn't get passed on to other listeners.
- 
getStatepublic 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:
 
- 
isConsumedpublic boolean isConsumed()- Returns:
- whether this event has been consumed.
 
 
- 
SWT.ALTinstead.