|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
frog.gui.TrainingParametersDialog
public class TrainingParametersDialog
Dialog for choosing gesture training settings such as how to model the gesture and what thresholds to use.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
CANCEL_SELECTION
User pressed the "Cancel" button. |
static int |
TRAIN_SELECTION
User pressed the "Train" button. |
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
TrainingParametersDialog(GestureHMM gm)
Creates a new TrainingParametersDialog with the specified GestureHMM to fill in the current settings on the GUI. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
If the user pressed OK, the dialog will validate the data and then return, disposing the dialog. |
boolean |
doKMeansPP()
Returns whether or not the K-Means++ algorithm should be used. |
int |
getHMMStates()
Returns the number of states for the HMM. |
double |
getHMMThresholdPercent()
Returns the threshold for the HMM. |
double |
getKMeansThreshold()
Returns the K-Means threshold for the Quantizer. |
int |
getKValue()
Returns the number of K-Means centers for the Quantizer. |
int |
getSelection()
Determines whether the user has selected to Train or to Cancel. |
void |
itemStateChanged(ItemEvent e)
If K-Means is selected, the user must choose a K-Value from a JComboBox. |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CANCEL_SELECTION
public static final int TRAIN_SELECTION
| Constructor Detail |
|---|
public TrainingParametersDialog(GestureHMM gm)
gm - the GestureHMM to be modified.| Method Detail |
|---|
public boolean doKMeansPP()
true if K-Means++ should be used,
false otherwisepublic int getHMMStates()
public double getHMMThresholdPercent()
public double getKMeansThreshold()
public int getKValue()
public int getSelection()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||