|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.satin.interpreter.InterpreterImpl | +--edu.berkeley.guir.lib.satin.interpreter.rubine.RubineInterpreter
Contains Rubine's recognizer. Subclass this to do something useful. This implementation also automatically caches existing recognizers.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Aug 02 1999, JH Created class - SATIN-v2.1-1.0.0, Aug 11 2000, JH Touched for SATIN release
Inner classes inherited from class edu.berkeley.guir.lib.satin.SatinConstants |
SatinConstants.ObjectPoolAffineTransform, SatinConstants.ObjectPoolPoint2D, SatinConstants.ObjectPoolPolygon2D, SatinConstants.ObjectPoolRectangle2D, SatinConstants.ObjectPoolStringBuffer, SatinConstants.UniqueAffineTransform, SatinConstants.UniquePoint2D, SatinConstants.UniquePolygon2D, SatinConstants.UniqueRectangle2D |
Field Summary | |
static String |
RUBINE_DATA_DIRECTORY_DEFAULT
|
static String |
RUBINE_DATA_DIRECTORY_PROPERTY
The directory of where to load up interpreters from. |
static String |
RUBINE_DATA_URL_DEFAULT
The default value for where the Rubine Recognition data is stored, overridden by whatever value is specified in the properties file. |
static String |
RUBINE_DATA_URL_PROPERTY
The name of the property that specifies where the Rubine Recognition data is stored on the network. |
Constructor Summary | |
RubineInterpreter(String strFileName)
Constructor to create a Rubine Interpreter. |
Method Summary | |
RubineInterpreter |
clone(RubineInterpreter intrp)
|
double |
getConfidence()
Get the confidence level for gesture recognition, below which we will ignore. |
String |
getFileName()
|
Recognizer |
getRecognizer()
|
void |
handleNewStroke(NewStrokeEvent evt)
Does nothing. |
void |
handleSingleStroke(SingleStrokeEvent evt)
First classifies the stroke using Rubine's Recognizer, and then delegates to handleSingleStroke(SingleStrokeEvent, Classification) if the
value is above the confidence threshold (as set by
setConfidence(double) ). |
protected abstract void |
handleSingleStroke(SingleStrokeEvent evt,
Classification c)
Do something given the classification. |
void |
handleUpdateStroke(UpdateStrokeEvent evt)
Does nothing. |
void |
setConfidence(double val)
Set the confidence level for gesture recognition, below which we will ignore. |
Methods inherited from class edu.berkeley.guir.lib.satin.interpreter.InterpreterImpl |
clone, clone, getAttachedGraphicalObject, getName, isConsumedAccepted, isEnabled, isEventAccepted, isEventAccepted, isLeftButtonAccepted, isMiddleButtonAccepted, isRightButtonAccepted, setAcceptConsumed, setAcceptLeftButton, setAcceptMiddleButton, setAcceptRightButton, setAttachedGraphicalObject, setEnabled, setName, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String RUBINE_DATA_DIRECTORY_PROPERTY
public static final String RUBINE_DATA_DIRECTORY_DEFAULT
public static final String RUBINE_DATA_URL_PROPERTY
public static final String RUBINE_DATA_URL_DEFAULT
Constructor Detail |
public RubineInterpreter(String strFileName)
Method Detail |
public Recognizer getRecognizer()
public double getConfidence()
public String getFileName()
public void setConfidence(double val)
public void handleNewStroke(NewStrokeEvent evt)
handleNewStroke
in class InterpreterImpl
edu.berkeley.guir.lib.satin.event.StrokeListener
evt
- is the event to handle.public void handleUpdateStroke(UpdateStrokeEvent evt)
handleUpdateStroke
in class InterpreterImpl
edu.berkeley.guir.lib.satin.event.StrokeListener
StrokeListener.handleNewStroke(NewStrokeEvent).
public void handleSingleStroke(SingleStrokeEvent evt)
handleSingleStroke(SingleStrokeEvent, Classification)
if the
value is above the confidence threshold (as set by
setConfidence(double)
).handleSingleStroke
in class InterpreterImpl
edu.berkeley.guir.lib.satin.event.StrokeListener
StrokeListener.handleNewStroke(NewStrokeEvent).
protected abstract void handleSingleStroke(SingleStrokeEvent evt, Classification c)
public RubineInterpreter clone(RubineInterpreter intrp)
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |