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.

Ron B Yeh (ronyeh(AT)

Definition at line 27 of file

Member Function Documentation

void penDown ( PenSample  sample  ) 

See also:

Implements PenListener.

Definition at line 34 of file

References PenStrokeListener.sample().

abstract void penStroke ( InkStroke  stroke  )  [pure virtual]

Notify that a new penstroke has occured.


Referenced by PenStrokeListener.penUp().

void penUp ( PenSample  sample  ) 

Samples for penUp have x & y set to 0.


Implements PenListener.

Definition at line 53 of file

References PenStrokeListener.penStroke().

void sample ( PenSample  sample  ) 

See also:

Implements PenListener.

Definition at line 72 of file

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