|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.recognition.StrokeSceneRecognizer
public class StrokeSceneRecognizer
A scene recognizer that uses a given stroke recognizer so that the results of its single-stroke recognition get added to the scene properly.
Field Summary | |
---|---|
static String |
STROKE_NAME
The string ID to access the child of a scene element. |
Constructor Summary | |
---|---|
StrokeSceneRecognizer(StrokeRecognizer r)
Construct a scene recognizer using the given stroke recognizer to perform single-stroke recognition. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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.
Constructor Detail |
---|
public StrokeSceneRecognizer(StrokeRecognizer r)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |