org.placelab.util.swt
Class GlyphEventTable

java.lang.Object
  extended byorg.placelab.util.swt.GlyphEventTable

public class GlyphEventTable
extends java.lang.Object

Instances of this class implement a simple look up mechanism that maps an event type to a listener. Muliple listeners for the same event type are supported.


Constructor Summary
GlyphEventTable()
           
 
Method Summary
static org.eclipse.swt.widgets.Event getEvent(org.eclipse.swt.events.MouseEvent me)
           
static org.eclipse.swt.widgets.Event getEvent(org.eclipse.swt.events.PaintEvent pe)
           
static org.eclipse.swt.widgets.Event getEvent(org.eclipse.swt.events.TypedEvent te)
           
 void hook(int eventType, org.eclipse.swt.widgets.Listener listener)
           
 boolean hooks(int eventType)
           
 void sendEvent(org.eclipse.swt.widgets.Event event)
           
 int size()
           
 void unhook(int eventType, org.eclipse.swt.widgets.Listener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlyphEventTable

public GlyphEventTable()
Method Detail

hook

public void hook(int eventType,
                 org.eclipse.swt.widgets.Listener listener)

hooks

public boolean hooks(int eventType)

sendEvent

public void sendEvent(org.eclipse.swt.widgets.Event event)

size

public int size()

unhook

public void unhook(int eventType,
                   org.eclipse.swt.widgets.Listener listener)

getEvent

public static org.eclipse.swt.widgets.Event getEvent(org.eclipse.swt.events.TypedEvent te)

getEvent

public static org.eclipse.swt.widgets.Event getEvent(org.eclipse.swt.events.PaintEvent pe)

getEvent

public static org.eclipse.swt.widgets.Event getEvent(org.eclipse.swt.events.MouseEvent me)