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


Constructor Summary
StrokeDataReader()
          The constructor.
 
Method Summary
 void addPoint(Point point)
          Add a point.
 StrokeData getStrokeData()
          Return the StrokeData collected by this reader
 boolean hasSufficientData()
          Return the StrokeData collected by this reader
 void reset()
          Reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrokeDataReader

public StrokeDataReader()
The constructor.
Method Detail

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