diva.sketch.recognition
Interface StrokeRecognizer

All Known Subinterfaces:
MultiStrokeRecognizer
All Known Implementing Classes:
BasicStrokeRecognizer, CachingStrokeRecognizer, LineRecognizer, ModedIncrRecognizer, PanRecognizer, PanZoomInterpreter.LocalRecognizer, RetypingRecognizer, ScribbleRecognizer, VotingStrokeRecognizer, ZoomRecognizer

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.

Version:
$Revision: 1.3 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)

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

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


strokeModified

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

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



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.