|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.r3.pen.streaming.listeners.PenStrokeListener
public abstract class PenStrokeListener
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 |
---|
public PenStrokeListener()
Method Detail |
---|
public void penDown(PenSample sample)
penDown
in interface PenListener
PenListener.penDown(edu.stanford.hci.r3.pen.PenSample)
public abstract void penStroke(InkStroke stroke)
stroke
- public void penUp(PenSample sample)
PenListener
penUp
in interface PenListener
public void sample(PenSample sample)
PenListener
sample
in interface PenListener
PenListener.sample(edu.stanford.hci.r3.pen.PenSample)
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |