hhreco.recognition
Interface StrokeRecognizer

All Known Subinterfaces:
MultiStrokeRecognizer
All Known Implementing Classes:
HHRecognizer

public interface StrokeRecognizer

A recognizer responds to changes in strokes and returns recognition sets (interpretations of the stroke or of some or all of the scene) based on these changes.


Method Summary
 RecognitionSet strokeCompleted(TimedStroke s)
          Invoked when a stroke is completed.
 RecognitionSet strokeModified(TimedStroke s)
          Invoked when a stroke has been modified, for example, points have been added to the stroke.
 RecognitionSet strokeStarted(TimedStroke s)
          Invoked when a stroke starts.
 

Method Detail

strokeStarted

public RecognitionSet strokeStarted(TimedStroke s)
Invoked when a stroke starts. This occurs when the mouse down event has been detected.


strokeModified

public RecognitionSet strokeModified(TimedStroke s)
Invoked when a stroke has been modified, for example, points have been added to the stroke. It is probably safe to assume that this will be called every time a point is added to a stroke.


strokeCompleted

public RecognitionSet strokeCompleted(TimedStroke s)
Invoked when a stroke is completed. This occurs when the mouse up event has been detected.