edu.stanford.hci.r3.events.handlers
Class StrokeHandler

java.lang.Object
  extended by edu.stanford.hci.r3.events.EventHandler
      extended by edu.stanford.hci.r3.events.handlers.StrokeHandler

public abstract class StrokeHandler
extends EventHandler

Handles single pen strokes...

This software is distributed under the BSD License.


Field Summary
 
Fields inherited from class edu.stanford.hci.r3.events.EventHandler
parentRegions
 
Constructor Summary
StrokeHandler()
           
 
Method Summary
 InkStroke getStroke()
           
 void handleEvent(PenEvent event)
          if this event should be consumed (i.e., lower priority event handlers should not see this event), we should set the event.consumed property to true
abstract  void strokeArrived(PenEvent e)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.stanford.hci.r3.events.EventHandler
addParentRegion, getParentRegions, showMe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StrokeHandler

public StrokeHandler()
Method Detail

getStroke

public InkStroke getStroke()

handleEvent

public void handleEvent(PenEvent event)
Description copied from class: EventHandler
if this event should be consumed (i.e., lower priority event handlers should not see this event), we should set the event.consumed property to true

Specified by:
handleEvent in class EventHandler
See Also:
EventHandler.handleEvent(edu.stanford.hci.r3.events.PenEvent)

strokeArrived

public abstract void strokeArrived(PenEvent e)
Parameters:
e -

toString

public java.lang.String toString()
Specified by:
toString in class EventHandler
Returns:
the Event Handler's Name

Copyright 2006 Stanford University