public class GestureClass
extends java.lang.Object
| Constructor and Description | 
|---|
GestureClass(java.lang.String n)
Builds a new labeled class of gestures. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addExample(Gesture gesture)
Adds an example of this class of gestures. 
 | 
java.util.Vector<Gesture> | 
getGestures()  | 
java.lang.String | 
getName()
Returns the name of this class of gestures. 
 | 
int | 
getNumberOfExamples()  | 
java.lang.Object | 
read(java.io.DataInputStream in)
Reads the definition of this gesture class from an input stream. 
 | 
boolean | 
removeExample(Gesture gesture)
Removes an example of this class of gestures. 
 | 
void | 
setName(java.lang.String name)
Sets the name of this gesture class. 
 | 
void | 
write(java.io.DataOutputStream out)  | 
public GestureClass(java.lang.String n)
n - The label of the class of gestures.public void write(java.io.DataOutputStream out)
           throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object read(java.io.DataInputStream in)
                      throws java.io.IOException
in - The input streamin.java.io.IOException - if a reading error occurs.public java.lang.String getName()
public boolean removeExample(Gesture gesture)
gesture - The gesture to remove from this gesture class.public void addExample(Gesture gesture)
gesture - The gesture to add to this gesture class.public void setName(java.lang.String name)
name - the name.public int getNumberOfExamples()
public java.util.Vector<Gesture> getGestures()