public class StrokeSceneRecognizer extends Object implements SceneRecognizer
Modifier and Type | Field and Description |
---|---|
static String |
STROKE_NAME
The string ID to access the child of a scene element.
|
Constructor and Description |
---|
StrokeSceneRecognizer(StrokeRecognizer r)
Construct a scene recognizer using the given
stroke recognizer to perform single-stroke
recognition.
|
Modifier and Type | Method and Description |
---|---|
StrokeRecognizer |
getStrokeRecognzer()
Return the stroke recognizer that this wraps.
|
SceneDeltaSet |
sessionCompleted(StrokeElement[] session,
Scene db)
Call the child recognizer and add the results, if any, to the
given scene database.
|
SceneDeltaSet |
strokeCompleted(StrokeElement se,
Scene db)
Call the child recognizer and add the results, if any,
to the given scene database.
|
SceneDeltaSet |
strokeModified(StrokeElement se,
Scene db)
Call the child recognizer and add the results, if any,
to the given scene database.
|
SceneDeltaSet |
strokeStarted(StrokeElement se,
Scene db)
Call the child recognizer and add the results, if any,
to the given scene database.
|
public static final String STROKE_NAME
SceneElement parent = ... StrokeElement stroke = parent.getChild( StrokeSceneRecognizer.STROKE_NAME);assuming that "parent" is the parent of a stroke element.
public StrokeSceneRecognizer(StrokeRecognizer r)
public StrokeRecognizer getStrokeRecognzer()
public SceneDeltaSet strokeCompleted(StrokeElement se, Scene db)
strokeCompleted
in interface SceneRecognizer
public SceneDeltaSet strokeModified(StrokeElement se, Scene db)
strokeModified
in interface SceneRecognizer
public SceneDeltaSet strokeStarted(StrokeElement se, Scene db)
strokeStarted
in interface SceneRecognizer
public SceneDeltaSet sessionCompleted(StrokeElement[] session, Scene db)
sessionCompleted
in interface SceneRecognizer
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.