public abstract class ModedIncrRecognizer extends Object implements StrokeRecognizer
Modifier and Type | Field and Description |
---|---|
protected static int |
ACTION
The recognizer has recognized the gesture as the signal and is
processing incoming events as an indicators to perform the specified
action.
|
protected static int |
IDLE
The recognizer is IDLE, and should ignore all events except for
STROKE_STARTED.
|
protected static int |
UNKNOWN
The recognizer has started processing events but still doesn't
know whether or not the the gesture matches the action signal.
|
Constructor and Description |
---|
ModedIncrRecognizer() |
Modifier and Type | Method and Description |
---|---|
protected abstract RecognitionSet |
processActionStroke(TimedStroke s)
Process an "action" event, performing the appropriate action
behavior (e.g.
|
protected abstract int |
recognizeActionSignal(TimedStroke s)
Recognize the action signal (it is still unknown) and return an
indication (to the template algorithm) of what mode the
algorithm should revert to.
|
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.
|
protected static int IDLE
protected static int UNKNOWN
protected static int ACTION
public RecognitionSet strokeStarted(TimedStroke s)
strokeStarted
in interface StrokeRecognizer
protected abstract RecognitionSet processActionStroke(TimedStroke s)
protected abstract int recognizeActionSignal(TimedStroke s)
public RecognitionSet strokeCompleted(TimedStroke s)
strokeCompleted
in interface StrokeRecognizer
public RecognitionSet strokeModified(TimedStroke s)
strokeModified
in interface StrokeRecognizer
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.