public class GestureLibrary
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
GestureMatch |
findGestureMatch(Gesture g,
float proximity)
Find gesture match.
|
static GestureLibrary |
getInstance()
Gets the single instance of GestureLibrary.
|
Gesture |
loadGesture(java.lang.String name)
Load gesture.
|
void |
writeGesture(java.lang.String name,
Gesture g,
java.io.File dir)
Write gesture.
|
public static GestureLibrary getInstance()
public GestureMatch findGestureMatch(Gesture g, float proximity)
g - the gproximity - the proximitypublic Gesture loadGesture(java.lang.String name)
name - the namepublic void writeGesture(java.lang.String name,
Gesture g,
java.io.File dir)
throws java.io.FileNotFoundException,
java.io.IOException
name - the nameg - the gdir - the dirjava.io.FileNotFoundException - the file not found exceptionjava.io.IOException - Signals that an I/O exception has occurred.