edu.mit.sketch.toolkit
Class StrokeDataReader
java.lang.Object
|
+--edu.mit.sketch.toolkit.StrokeDataReader
- All Implemented Interfaces:
- StrokeDataFactory
- public class StrokeDataReader
- extends Object
- implements StrokeDataFactory
This object implements StrokeDataFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrokeDataReader
public StrokeDataReader()
- The constructor.
addPoint
public void addPoint(Point point)
- Add a point.
Throws an array index out of bound exception if more points
than the max_data_points are added.
- Specified by:
addPoint in interface StrokeDataFactory
getStrokeData
public StrokeData getStrokeData()
- Return the StrokeData collected by this reader
- Specified by:
getStrokeData in interface StrokeDataFactory
reset
public void reset()
- Reset
hasSufficientData
public boolean hasSufficientData()
- Return the StrokeData collected by this reader