Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d
Class EventDispatcher

java.lang.Object
  extended by
org.eclipse.draw2d.EventDispatcher
Direct Known Subclasses:
SWTEventDispatcher

public abstract class EventDispatcher
extends java.lang.Object

Listens to various SWT events and dispatches these events to interested Draw2d objects.


Nested Class Summary
static class EventDispatcher.AccessibilityDispatcher
          Combines AccessibleControlListener and AccessibleListener.
 
Constructor Summary
EventDispatcher ()
           
 
Method Summary
abstract  void dispatchFocusGained ( FocusEvent e)
          Dispatches a focus gained event.
abstract  void dispatchFocusLost ( FocusEvent e)
          Dispatches a focus lost event.
abstract  void dispatchKeyPressed ( KeyEvent e)
          Dispatches a key pressed event.
abstract  void dispatchKeyReleased ( KeyEvent e)
          Dispatches a key released event.
abstract  void dispatchKeyTraversed (TraverseEvent e)
          Dispatches a key traversed event.
abstract  void dispatchMouseDoubleClicked ( MouseEvent me)
          Dispatches a mouse double clicked event.
abstract  void dispatchMouseEntered ( MouseEvent e)
          Dispatches a mouse entered event.
abstract  void dispatchMouseExited ( MouseEvent e)
          Dispatches a mouse exited event.
abstract  void dispatchMouseHover ( MouseEvent me)
          Dispatches a mouse hover event.
abstract  void dispatchMouseMoved ( MouseEvent me)
          Dispatches a moved event event.
abstract  void dispatchMousePressed ( MouseEvent me)
          Dispatches a mouse pressed event.
abstract  void dispatchMouseReleased ( MouseEvent me)
          Dispatches a mouse released event.
 void dispatchMouseWheelScrolled (Event event)
          Dispatches a MouseWheel event.
protected abstract   EventDispatcher.AccessibilityDispatcher getAccessibilityDispatcher ()
          Returns the AccessibilityDispatcher.
abstract  boolean isCaptured ()
           
protected abstract  void releaseCapture ()
          Releases capture initiated by setCapture(IFigure).
abstract  void requestFocus ( IFigure fig)
          Requests focus for the given figure.
abstract  void requestRemoveFocus ( IFigure fig)
          Requests focus to be removed from the given figure.
protected abstract  void setCapture ( IFigure figure)
          Sets capture to the given figure.
abstract  void setControl (Control control)
          Sets the contol associated with this event dispatcher.
abstract  void setRoot ( IFigure figure)
          Sets the root figure for this dispatcher.
protected abstract  void updateCursor ()
          Updates the cursor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventDispatcher

public EventDispatcher()
Method Detail

dispatchFocusGained

public abstract void dispatchFocusGained(
FocusEvent e)
Dispatches a focus gained event.

Parameters:
e - the event

dispatchFocusLost

public abstract void dispatchFocusLost(
FocusEvent e)
Dispatches a focus lost event.

Parameters:
e - the event

dispatchKeyPressed

public abstract void dispatchKeyPressed(
KeyEvent e)
Dispatches a key pressed event.

Parameters:
e - the event

dispatchKeyReleased

public abstract void dispatchKeyReleased(
KeyEvent e)
Dispatches a key released event.

Parameters:
e - the event

dispatchKeyTraversed

public abstract void dispatchKeyTraversed(TraverseEvent e)
Dispatches a key traversed event.

Parameters:
e - the event

dispatchMouseDoubleClicked

public abstract void dispatchMouseDoubleClicked(
MouseEvent me)
Dispatches a mouse double clicked event.

Parameters:
me - the event

dispatchMouseEntered

public abstract void dispatchMouseEntered(
MouseEvent e)
Dispatches a mouse entered event.

Parameters:
e - the event

dispatchMouseExited

public abstract void dispatchMouseExited(
MouseEvent e)
Dispatches a mouse exited event.

Parameters:
e - the event

dispatchMouseHover

public abstract void dispatchMouseHover(
MouseEvent me)
Dispatches a mouse hover event.

Parameters:
me - the event

dispatchMouseMoved

public abstract void dispatchMouseMoved(
MouseEvent me)
Dispatches a moved event event.

Parameters:
me - the event

dispatchMousePressed

public abstract void dispatchMousePressed(
MouseEvent me)
Dispatches a mouse pressed event.

Parameters:
me - the event

dispatchMouseReleased

public abstract void dispatchMouseReleased(
MouseEvent me)
Dispatches a mouse released event.

Parameters:
me - the event

dispatchMouseWheelScrolled

public void dispatchMouseWheelScrolled(Event event)
Dispatches a MouseWheel event. Does nothing by default.

Parameters:
event - the SWT event
Since:
3.1

getAccessibilityDispatcher

protected abstract 
EventDispatcher.AccessibilityDispatcher getAccessibilityDispatcher()
Returns the AccessibilityDispatcher.

Returns:
the AccessibilityDispatcher

isCaptured

public abstract boolean isCaptured()
Returns:
whether events are captured by a figure

releaseCapture

protected abstract void releaseCapture()
Releases capture initiated by setCapture(IFigure).


requestFocus

public abstract void requestFocus(
IFigure fig)
Requests focus for the given figure.

Parameters:
fig - the figure requesting focus

requestRemoveFocus

public abstract void requestRemoveFocus(
IFigure fig)
Requests focus to be removed from the given figure.

Parameters:
fig - the figure requesting focus be removed

setCapture

protected abstract void setCapture(
IFigure figure)
Sets capture to the given figure. All subsequent events will be sent to the given figure until releaseCapture() is called.

Parameters:
figure - the figure capturing the events

setControl

public abstract void setControl(Control control)
Sets the contol associated with this event dispatcher.

Parameters:
control - the control

setRoot

public abstract void setRoot(
IFigure figure)
Sets the root figure for this dispatcher.

Parameters:
figure - the root figure

updateCursor

protected abstract void updateCursor()
Updates the cursor.


Eclipse Draw2d
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire