PenStrokeListener Class Reference

Inheritance diagram for PenStrokeListener:

PenListener List of all members.

Public Member Functions

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)

Detailed Description

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.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 27 of file PenStrokeListener.java.


Member Function Documentation

void penDown ( PenSample  sample  ) 

See also:
edu.stanford.hci.r3.pen.streaming.listeners.PenListener.penDown(edu.stanford.hci.r3.pen.PenSample)

Implements PenListener.

Definition at line 34 of file PenStrokeListener.java.

References PenStrokeListener.sample().

abstract void penStroke ( InkStroke  stroke  )  [pure virtual]

Notify that a new penstroke has occured.

Parameters:
stroke 

Referenced by PenStrokeListener.penUp().

void penUp ( PenSample  sample  ) 

Samples for penUp have x & y set to 0.

Parameters:
sample 

Implements PenListener.

Definition at line 53 of file PenStrokeListener.java.

References PenStrokeListener.penStroke().

void sample ( PenSample  sample  ) 

See also:
edu.stanford.hci.r3.pen.streaming.listeners.PenListener.sample(edu.stanford.hci.r3.pen.PenSample)

Implements PenListener.

Definition at line 72 of file PenStrokeListener.java.

Referenced by PenStrokeListener.penDown().


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:44 2007 for R3 Paper Toolkit by  doxygen 1.4.7