|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.r3.events.EventEngine
public class EventEngine
When you ask the PaperToolkit to run a paper Application, there will be exactly one EventEngine handling all pen events for that Application. This EventEngine will process batched pen data, and also handle streaming data. We will tackle streaming first.
This class is responsible for sending data to the event handlers, which will create clicks, drags, etc.
This software is distributed under the BSD License.
Constructor Summary | |
---|---|
EventEngine()
This object handles event dispatch by hooking up pen listeners to local and remote pen servers. |
Method Summary | |
---|---|
void |
addEventHandlerForUnmappedEvents(EventHandler handler)
This can detect and process events when it's outside of any other region... |
EventReplayManager |
getEventReplayManager()
|
void |
handlePenEvent(PenEvent penEvent)
All pen events go through here. |
void |
handlePenUpEvent(PenEvent event)
Send the penUp to the event handlers... |
void |
register(PenInput pen)
If you register a pen multiple times, a different pen listener will be attached to the pen. |
void |
registerPatternMapForEventHandling(PatternLocationToSheetLocationMapping mapping)
Really, this is the only method we need to do runtime binding. |
void |
registerPatternMapsForEventHandling(java.util.Collection<PatternLocationToSheetLocationMapping> patternMaps)
Keep track of the pattern on sheets, so we can dispatch events appropriately. |
void |
removeEventHandlerForUnmappedEvents(EventHandler handler)
|
void |
unregisterAllPatternMaps()
To reset the event engine at runtime. |
void |
unregisterPatternMapForEventHandling(PatternLocationToSheetLocationMapping patternMap)
|
void |
unregisterPatternMapsForEventHandling(java.util.Collection<PatternLocationToSheetLocationMapping> patternMaps)
Remove these maps from our runtime list. |
void |
unregisterPen(PenInput pen)
Stop watching this pen input device. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventEngine()
Method Detail |
---|
public void addEventHandlerForUnmappedEvents(EventHandler handler)
handler
- public EventReplayManager getEventReplayManager()
public void handlePenEvent(PenEvent penEvent)
TODO: Should this be multithreaded, for performance reasons?
TODO: Should this have synchronized access to patternToSheetMaps, for race conditions?
penEvent
- public void handlePenUpEvent(PenEvent event)
event
- public void register(PenInput pen)
pen
- public void registerPatternMapForEventHandling(PatternLocationToSheetLocationMapping mapping)
mapping
- public void registerPatternMapsForEventHandling(java.util.Collection<PatternLocationToSheetLocationMapping> patternMaps)
patternMaps
- public void removeEventHandlerForUnmappedEvents(EventHandler handler)
strokeHandler
- public void unregisterAllPatternMaps()
public void unregisterPatternMapForEventHandling(PatternLocationToSheetLocationMapping patternMap)
patternMap
- public void unregisterPatternMapsForEventHandling(java.util.Collection<PatternLocationToSheetLocationMapping> patternMaps)
patternMaps
- public void unregisterPen(PenInput pen)
pen
-
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |