Plot3D Class Reference
Panel containing a 3D representation of incoming accelerations from the user. More...
Inherits javax::swing::JPanel.
Public Member Functions | |
Plot3D () | |
Constructs a new panel with a blank 3D graph. | |
void | addVector (Accel3D a3d) |
Adds another vector to be drawn to this graph. | |
void | destroyPlot () |
When this panel should no longer be displayed, this method is called. | |
void | finishPlot () |
Called to signify the end of a set of accelerations. | |
double[][] | getSquareReferencesVector (double i) |
Generates squared coordinates for the reference axis. | |
void | run () |
void | setPlot (Vector< Accel3D > set) |
Unlike addVector(Accel3D), graphs an entire set of Accel3D's in one pass. | |
Static Public Attributes | |
static volatile Plot3D | instance = null |
Detailed Description
Panel containing a 3D representation of incoming accelerations from the user.
This JPanel implements Runnable but should not be added to any external Thread (it starts its own at the end of the constructor).
This Panel contains a queue of acceleration data that it constantly processes. Upon receiving an end of gesture notification, the next acceleration vector that comes in will wipe the graph clean.
Constructor & Destructor Documentation
Plot3D | ( | ) |
Constructs a new panel with a blank 3D graph.
Member Function Documentation
void addVector | ( | Accel3D | a3d | ) |
Adds another vector to be drawn to this graph.
- Parameters:
-
a3d the acceleration to graph
void destroyPlot | ( | ) |
When this panel should no longer be displayed, this method is called.
void finishPlot | ( | ) |
Called to signify the end of a set of accelerations.
Prepares the graph for a new set of accelerations.
double [][] getSquareReferencesVector | ( | double | i | ) |
Generates squared coordinates for the reference axis.
The returned coordinates will have maximum coordinates e equal to i and minimum equal to -i.
- Parameters:
-
i absolute value to be used to calculate the absolute minimum and maximum for the coordinates.
- Returns:
- an array representing the coordinates necessary to draw square references on the jmath plot 3d.
void run | ( | ) |
void setPlot | ( | Vector< Accel3D > | set | ) |
Unlike addVector(Accel3D), graphs an entire set of Accel3D's in one pass.
- Parameters:
-
set A Vector containing all the plotting data.
Member Data Documentation
The documentation for this class was generated from the following file:
- /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/FROG/src/frog/gui/Plot3D.java