edu.stanford.hci.r3.pen.streaming.listeners
Class PenStrokeListener

java.lang.Object
  extended by edu.stanford.hci.r3.pen.streaming.listeners.PenStrokeListener
All Implemented Interfaces:
PenListener

public abstract class PenStrokeListener
extends java.lang.Object
implements PenListener

This lives in the streaming.listeners package because you cannot use this listener directly if your pattern spans multiple sheets. This listener stores information in raw Streaming PenSamples, so you will have to do the calculations yourself... This class is definitely for experts only!

The class also doesn't do any filtering, so if the pen is bad, you will get lots of PenDown/PenUps in rapid succession.

This software is distributed under the BSD License.


Constructor Summary
PenStrokeListener()
           
 
Method Summary
 void penDown(PenSample sample)
           
abstract  void penStroke(InkStroke stroke)
          Notify that a new penstroke has occured.
 void penUp(PenSample sample)
          Samples for penUp have x & y set to 0.
 void sample(PenSample sample)
          A sample happened.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PenStrokeListener

public PenStrokeListener()
Method Detail

penDown

public void penDown(PenSample sample)
Specified by:
penDown in interface PenListener
See Also:
PenListener.penDown(edu.stanford.hci.r3.pen.PenSample)

penStroke

public abstract void penStroke(InkStroke stroke)
Notify that a new penstroke has occured.

Parameters:
stroke -

penUp

public void penUp(PenSample sample)
Description copied from interface: PenListener
Samples for penUp have x & y set to 0.

Specified by:
penUp in interface PenListener

sample

public void sample(PenSample sample)
Description copied from interface: PenListener
A sample happened.

Specified by:
sample in interface PenListener
See Also:
PenListener.sample(edu.stanford.hci.r3.pen.PenSample)

Copyright 2006 Stanford University