frog.gui
Class FROGUI

java.lang.Object
  extended by frog.gui.FROGUI

public class FROGUI
extends Object

Main class for the Team Better Recognize GUI for FROG.

The FROGUI class represents the initial offering of Team Better Recognize for a GUI interface to the FROG Recognizer of Gestures tool. This GUI supports all features of FROG. The user interface is built on top of the underlying FROG class and it should not be a problem to create a completely different GUI to suit your specific needs.

Author:
Team Better Recognize

Field Summary
(package private) static Image checkmark
          Standard image to be used with frog.
(package private) static Image configure
          Standard image to be used with frog.
(package private) static JFrame frame
          The main JFrame for the FROGUI application.
(package private) static Frog frog
          Reference to underlying FROG system
(package private) static Image frogLogo
          Standard image to be used with frog.
(package private) static boolean guiVerbose
           
(package private) static int heightDemoWindow
           
(package private) static int heightEvaluationWindow
           
(package private) static int heightMainMenu
           
(package private) static int heightRecognitionWindow
           
(package private) static int heightTrainingWindow
           
(package private) static Image ignoreButton
          Standard image to be used with frog.
(package private) static Image infoButton
          Standard image to be used with frog.
static int MAX_USERS
           
(package private) static Image shutdownButton
          Standard image to be used with frog.
(package private) static int widthDemoWindow
           
(package private) static int widthEvaluationWindow
           
(package private) static int widthMainMenu
           
(package private) static int widthRecognitionWindow
           
(package private) static int widthTrainingWindow
           
(package private) static Image x
          Standard image to be used with frog.
 
Method Summary
static FROGUI getInstance()
          Returns the singleton FROGUI object.
static User getUser(int i)
          Returns the values of the users array of the GUI.
static void main(String[] args)
          Sets look and feel and imports images.
static void setPanel(JPanel panel)
          Allows the transition from one panel to the next.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

guiVerbose

static final boolean guiVerbose
See Also:
Constant Field Values

MAX_USERS

public static final int MAX_USERS
See Also:
Constant Field Values

widthMainMenu

static final int widthMainMenu
See Also:
Constant Field Values

heightMainMenu

static final int heightMainMenu
See Also:
Constant Field Values

widthTrainingWindow

static final int widthTrainingWindow
See Also:
Constant Field Values

heightTrainingWindow

static final int heightTrainingWindow
See Also:
Constant Field Values

widthRecognitionWindow

static final int widthRecognitionWindow
See Also:
Constant Field Values

heightRecognitionWindow

static final int heightRecognitionWindow
See Also:
Constant Field Values

widthEvaluationWindow

static final int widthEvaluationWindow
See Also:
Constant Field Values

heightEvaluationWindow

static final int heightEvaluationWindow
See Also:
Constant Field Values

widthDemoWindow

static final int widthDemoWindow
See Also:
Constant Field Values

heightDemoWindow

static final int heightDemoWindow
See Also:
Constant Field Values

frog

static final Frog frog
Reference to underlying FROG system


frame

static final JFrame frame
The main JFrame for the FROGUI application.


frogLogo

static Image frogLogo
Standard image to be used with frog.


infoButton

static Image infoButton
Standard image to be used with frog.


shutdownButton

static Image shutdownButton
Standard image to be used with frog.


checkmark

static Image checkmark
Standard image to be used with frog.


x

static Image x
Standard image to be used with frog.


configure

static Image configure
Standard image to be used with frog.


ignoreButton

static Image ignoreButton
Standard image to be used with frog.

Method Detail

main

public static void main(String[] args)
Sets look and feel and imports images.

Parameters:
args - (unused)

getInstance

public static FROGUI getInstance()
Returns the singleton FROGUI object.

Returns:
FROGUI's singleton object.

getUser

public static User getUser(int i)
Returns the values of the users array of the GUI.

Parameters:
i - index of the user to be returned
Returns:
FroguiUser object representing the requested user.

setPanel

public static void setPanel(JPanel panel)
Allows the transition from one panel to the next.

Parameters:
panel - the panel you wish the JFrame to switch to