Package org.eclipse.draw2d
Class EventDispatcher
java.lang.Object
org.eclipse.draw2d.EventDispatcher
- Direct Known Subclasses:
- SWTEventDispatcher
Listens to various SWT events and dispatches these events to interested
 Draw2d objects.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classCombinesAccessibleControlListenerandAccessibleListener.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidDispatches a focus gained event.abstract voidDispatches a focus lost event.abstract voidDispatches a key pressed event.abstract voidDispatches a key released event.abstract voidDispatches a key traversed event.abstract voidDispatches a mouse double clicked event.abstract voidDispatches a mouse entered event.abstract voidDispatches a mouse exited event.abstract voidDispatches a mouse hover event.abstract voidDispatches a moved event event.abstract voidDispatches a mouse pressed event.abstract voidDispatches a mouse released event.voiddispatchMouseWheelScrolled(Event event) Dispatches a MouseWheel event.protected abstract EventDispatcher.AccessibilityDispatcherReturns the AccessibilityDispatcher.abstract IFigureReturns the IFigure that currently has focus.abstract booleanprotected abstract voidReleases capture initiated bysetCapture(IFigure).abstract voidrequestFocus(IFigure fig) Requests focus for the given figure.abstract voidRequests focus to be removed from the given figure.protected abstract voidsetCapture(IFigure figure) Sets capture to the given figure.abstract voidsetControl(Control control) Sets the contol associated with this event dispatcher.abstract voidSets the root figure for this dispatcher.protected abstract voidUpdates the cursor.
- 
Constructor Details- 
EventDispatcherpublic EventDispatcher()
 
- 
- 
Method Details- 
dispatchFocusGainedDispatches a focus gained event.- Parameters:
- e- the event
 
- 
dispatchFocusLostDispatches a focus lost event.- Parameters:
- e- the event
 
- 
dispatchKeyPressedDispatches a key pressed event.- Parameters:
- e- the event
 
- 
dispatchKeyReleasedDispatches a key released event.- Parameters:
- e- the event
 
- 
dispatchKeyTraversedDispatches a key traversed event.- Parameters:
- e- the event
 
- 
dispatchMouseDoubleClickedDispatches a mouse double clicked event.- Parameters:
- me- the event
 
- 
dispatchMouseEnteredDispatches a mouse entered event.- Parameters:
- e- the event
 
- 
dispatchMouseExitedDispatches a mouse exited event.- Parameters:
- e- the event
 
- 
dispatchMouseHoverDispatches a mouse hover event.- Parameters:
- me- the event
 
- 
dispatchMouseMovedDispatches a moved event event.- Parameters:
- me- the event
 
- 
dispatchMousePressedDispatches a mouse pressed event.- Parameters:
- me- the event
 
- 
dispatchMouseReleasedDispatches a mouse released event.- Parameters:
- me- the event
 
- 
dispatchMouseWheelScrolledDispatches a MouseWheel event. Does nothing by default.- Parameters:
- event- the SWT event
- Since:
- 3.1
 
- 
getAccessibilityDispatcherReturns the AccessibilityDispatcher.- Returns:
- the AccessibilityDispatcher
 
- 
getFocusOwnerReturns the IFigure that currently has focus.- Returns:
- the IFigure that currently has focus
- Since:
- 3.6
 
- 
isCapturedpublic abstract boolean isCaptured()- Returns:
- whether events are captured by a figure
 
- 
releaseCaptureprotected abstract void releaseCapture()Releases capture initiated bysetCapture(IFigure).
- 
requestFocusRequests focus for the given figure.- Parameters:
- fig- the figure requesting focus
 
- 
requestRemoveFocusRequests focus to be removed from the given figure.- Parameters:
- fig- the figure requesting focus be removed
 
- 
setCaptureSets capture to the given figure. All subsequent events will be sent to the given figure untilreleaseCapture()is called.- Parameters:
- figure- the figure capturing the events
 
- 
setControlSets the contol associated with this event dispatcher.- Parameters:
- control- the control
 
- 
setRootSets the root figure for this dispatcher.- Parameters:
- figure- the root figure
 
- 
updateCursorprotected abstract void updateCursor()Updates the cursor.
 
-