|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsm.StateMachine
rubine.GestureStateMachine
A state machine that can be associated with a classifier to receive gesture events.
Nested Class Summary |
Nested classes inherited from class sm.StateMachine |
StateMachine.State |
Constructor Summary | |
GestureStateMachine(java.lang.String n)
Builds a state machine. |
|
GestureStateMachine(java.lang.String n,
SMCanvas c)
Builds a state machine and attach it to a canvas. |
Method Summary | |
void |
gestureDisable()
Makes this state machine do not receive the gesture events |
void |
gestureEnable(java.lang.String dictionary)
Makes this state machine receive the gesture events |
Gesture |
newGesture()
Builds a new gesture. |
void |
processEvent(int modifier,
java.awt.geom.Point2D p,
Gesture g)
Classifies a gesture and fires a gesture event to this state machine. |
Methods inherited from class sm.StateMachine |
actionPerformed, addSMListener, armTimer, attachTo, attachTo, consumes, detach, disarmTimer, doReset, doResume, doSuspend, getAllStates, getCurrentState, getName, getObjects, greaterPriorityThan, greatestPriority, hasConsumed, init, isActive, isAttached, isAttachedTo, lowerPriorityThan, lowestPriority, processEvent, processEvent, processEvent, processEvent, removeSMListener, reset, resume, setActive, suspend |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GestureStateMachine(java.lang.String n)
n
- the name of the state machine.public GestureStateMachine(java.lang.String n, SMCanvas c)
n
- the name of the state machine.c
- the canvas to link to this state machine.Method Detail |
public void processEvent(int modifier, java.awt.geom.Point2D p, Gesture g)
modifier
- The modifier of this gesture event.p
- The location where this event occured.g
- The gesture The gesture to classify.public void gestureEnable(java.lang.String dictionary)
dictionary
- The name of the file that contains the definition of the dictionary (classes associated to their learning examples).public void gestureDisable()
public Gesture newGesture()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |