edu.stanford.hci.r3.pen.gesture
Class GestureDatabase
java.lang.Object
edu.stanford.hci.r3.pen.gesture.GestureDatabase
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.FocusListener, java.util.EventListener
public class GestureDatabase
- extends java.lang.Object
- implements java.awt.event.ActionListener, java.awt.event.FocusListener
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
autotest()
|
void |
autotest(java.util.ArrayList<Gesture> gestures)
|
void |
command(int option)
|
void |
createBestImage()
|
void |
determineClassParameters()
|
void |
display(ShapeContext context,
double w,
double h)
|
void |
focusGained(java.awt.event.FocusEvent arg0)
|
void |
focusLost(java.awt.event.FocusEvent arg0)
|
void |
generateGesture()
|
PenGestureListener |
getListener()
|
void |
labelGestures()
|
void |
leaveOneOutOptimizeCostWeighting()
|
static void |
makeCompactGrid(java.awt.Container parent,
int rows,
int cols,
int initialX,
int initialY,
int xPad,
int yPad)
|
void |
quillWrite(java.io.Writer writer)
|
void |
Save(java.io.Writer writer)
|
java.lang.String |
test(ShapeContext context,
boolean verbose)
|
java.lang.String |
test(ShapeContext context,
boolean verbose,
java.util.ArrayList<Gesture> gestures)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GestureDatabase
public GestureDatabase(java.lang.String databaseName)
makeCompactGrid
public static void makeCompactGrid(java.awt.Container parent,
int rows,
int cols,
int initialX,
int initialY,
int xPad,
int yPad)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
autotest
public void autotest()
autotest
public void autotest(java.util.ArrayList<Gesture> gestures)
command
public void command(int option)
throws java.io.IOException
- Throws:
java.io.IOException
createBestImage
public void createBestImage()
determineClassParameters
public void determineClassParameters()
display
public void display(ShapeContext context,
double w,
double h)
focusGained
public void focusGained(java.awt.event.FocusEvent arg0)
- Specified by:
focusGained
in interface java.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent arg0)
- Specified by:
focusLost
in interface java.awt.event.FocusListener
generateGesture
public void generateGesture()
getListener
public PenGestureListener getListener()
labelGestures
public void labelGestures()
leaveOneOutOptimizeCostWeighting
public void leaveOneOutOptimizeCostWeighting()
quillWrite
public void quillWrite(java.io.Writer writer)
throws java.io.IOException
- Throws:
java.io.IOException
Save
public void Save(java.io.Writer writer)
throws java.io.IOException
- Throws:
java.io.IOException
test
public java.lang.String test(ShapeContext context,
boolean verbose)
test
public java.lang.String test(ShapeContext context,
boolean verbose,
java.util.ArrayList<Gesture> gestures)