org.eclipse.draw2d
Class SWTEventDispatcher
java.lang.Object
|
+--org.eclipse.draw2d.EventDispatcher
|
+--org.eclipse.draw2d.SWTEventDispatcher
- public class SWTEventDispatcher
- extends EventDispatcher
The SWTEventDispatcher provides draw2d with the ability to
dispatch SWT Events. The LightweightSystem
adds SWT event listeners on its Canvas. When the Canvas receives
an SWT event, it calls the appropriate dispatcher method in
SWTEventDispatcher.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANY_BUTTON
protected static final int ANY_BUTTON
- See Also:
- Constant Field Values
control
protected Control control
SWTEventDispatcher
public SWTEventDispatcher()
dispatchFocusGained
public void dispatchFocusGained(FocusEvent e)
- Specified by:
dispatchFocusGained
in class EventDispatcher
dispatchFocusLost
public void dispatchFocusLost(FocusEvent e)
- Specified by:
dispatchFocusLost
in class EventDispatcher
dispatchKeyPressed
public void dispatchKeyPressed(KeyEvent e)
- Specified by:
dispatchKeyPressed
in class EventDispatcher
dispatchKeyReleased
public void dispatchKeyReleased(KeyEvent e)
- Specified by:
dispatchKeyReleased
in class EventDispatcher
dispatchKeyTraversed
public void dispatchKeyTraversed(TraverseEvent e)
- Specified by:
dispatchKeyTraversed
in class EventDispatcher
dispatchMouseHover
public void dispatchMouseHover(MouseEvent me)
- Specified by:
dispatchMouseHover
in class EventDispatcher
dispatchMouseDoubleClicked
public void dispatchMouseDoubleClicked(MouseEvent me)
- Specified by:
dispatchMouseDoubleClicked
in class EventDispatcher
dispatchMouseEntered
public void dispatchMouseEntered(MouseEvent me)
- Specified by:
dispatchMouseEntered
in class EventDispatcher
dispatchMouseExited
public void dispatchMouseExited(MouseEvent me)
- Specified by:
dispatchMouseExited
in class EventDispatcher
dispatchMousePressed
public void dispatchMousePressed(MouseEvent me)
- Specified by:
dispatchMousePressed
in class EventDispatcher
dispatchMouseMoved
public void dispatchMouseMoved(MouseEvent me)
- Specified by:
dispatchMouseMoved
in class EventDispatcher
dispatchMouseReleased
public void dispatchMouseReleased(MouseEvent me)
- Specified by:
dispatchMouseReleased
in class EventDispatcher
getAccessibilityDispatcher
protected EventDispatcher.AccessibilityDispatcher getAccessibilityDispatcher()
- Specified by:
getAccessibilityDispatcher
in class EventDispatcher
getCurrentEvent
protected MouseEvent getCurrentEvent()
getCursorTarget
protected IFigure getCursorTarget()
getToolTipHelper
protected ToolTipHelper getToolTipHelper()
getFocusTraverseManager
protected final FocusTraverseManager getFocusTraverseManager()
getMouseTarget
protected IFigure getMouseTarget()
getRoot
protected IFigure getRoot()
isCaptured
public boolean isCaptured()
- Specified by:
isCaptured
in class EventDispatcher
releaseCapture
protected void releaseCapture()
- Specified by:
releaseCapture
in class EventDispatcher
requestFocus
public void requestFocus(IFigure fig)
- Specified by:
requestFocus
in class EventDispatcher
requestRemoveFocus
public void requestRemoveFocus(IFigure fig)
- Specified by:
requestRemoveFocus
in class EventDispatcher
setCapture
protected void setCapture(IFigure figure)
- Specified by:
setCapture
in class EventDispatcher
setControl
public void setControl(Control c)
- Specified by:
setControl
in class EventDispatcher
setCursor
protected void setCursor(Cursor c)
setEnableKeyTraversal
public void setEnableKeyTraversal(boolean traverse)
setFigureUnderCursor
protected void setFigureUnderCursor(IFigure f)
setFocus
protected void setFocus(IFigure fig)
setHoverSource
protected void setHoverSource(Figure figure,
MouseEvent me)
setMouseTarget
protected void setMouseTarget(IFigure figure)
setRoot
public void setRoot(IFigure figure)
- Specified by:
setRoot
in class EventDispatcher
updateCursor
protected void updateCursor()
- Specified by:
updateCursor
in class EventDispatcher
updateFigureUnderCursor
protected void updateFigureUnderCursor(MouseEvent me)
updateHoverSource
protected void updateHoverSource(MouseEvent me)
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.