FROG

FROG Recognizer of Gestures

PlayerPanel Class Reference

PlayerPanel is used to represent a single player on the DemoPanel. More...

Inheritance diagram for PlayerPanel:
Collaboration diagram for PlayerPanel:

List of all members.

Public Member Functions

 PlayerPanel (User user)
 Create a new PlayerPanel.
void dispose ()
 Removes this panel as a session listener.
boolean sessionCheck ()
 Ensures that this player has a valid Session loaded.
void actionPerformed (ActionEvent e)
void unexpectedDisconnect (Device d)
 Executed whenever a Session detects an unexpected disconnect from a Device it is listening to.
void accelerationPerformed (AccelEvent e)
 Executed whenever a Session detects an acceleration from a Device it is listening to.
void gestureComplete (boolean good, Device d)
 Executed whenever a Session detects a complete gesture from a Device it is listening to.
void gestureRecognized (GestureModel g)
 Executed whenever a Session has recognized a gesture performed by the Device it is listening to (requires being in recognition mode).

Detailed Description

PlayerPanel is used to represent a single player on the DemoPanel.

This panel is meant to be used on the DemoPanel. It allows the user to load which gesture library they want and what Device they will use.

Author:
Team Better Recognize
See also:
DemoPanel

Constructor & Destructor Documentation

PlayerPanel ( User  user  ) 

Create a new PlayerPanel.

Here is the call graph for this function:


Member Function Documentation

void accelerationPerformed ( AccelEvent  e  ) 

Executed whenever a Session detects an acceleration from a Device it is listening to.

Implements SessionListener.

void actionPerformed ( ActionEvent  e  ) 

Here is the call graph for this function:

void dispose (  ) 

Removes this panel as a session listener.

Here is the call graph for this function:

void gestureComplete ( boolean  good,
Device  d 
)

Executed whenever a Session detects a complete gesture from a Device it is listening to.

Implements SessionListener.

void gestureRecognized ( GestureModel  g  ) 

Executed whenever a Session has recognized a gesture performed by the Device it is listening to (requires being in recognition mode).

Parameters:
g The gesture recognized
See also:
Session.inRecognitionMode()

Implements SessionListener.

boolean sessionCheck (  ) 

Ensures that this player has a valid Session loaded.

A valid Session is one that contains at least the following gestures:

  • Circle
  • Square
  • Triangle
  • X
  • Z
Returns:
true if and only if the user has the five gestures required to play the game.

Here is the call graph for this function:

Here is the caller graph for this function:

void unexpectedDisconnect ( Device  d  ) 

Executed whenever a Session detects an unexpected disconnect from a Device it is listening to.

Implements SessionListener.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
  • /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/FROG/src/frog/gui/PlayerPanel.java
 All Classes Namespaces Files Functions Variables