Inheritance diagram for datavisualizer::DetailedOutputLegend:
Public Member Functions | |
DetailedOutputLegend (DetailedOutputFileManager oManager, String sTitle, String[] p_sSpeciesNames, int iMaxTimesteps) throws ModelException | |
Constructor. | |
void | actionPerformed (ActionEvent e) |
Responds to button presses. | |
void | GoToTimestep (int iTimestep) throws javawrapper. ModelException |
Changes the display to the desired timestep. | |
int | GetNumberOfTimesteps () |
Gets the number of timesteps contained in this detailed output file. | |
void | SetNumberOfTimesteps (int iNumTimesteps) |
Updates the legend with a new maximum number of timesteps. | |
int | GetCurrentTimestep () |
Gets the timestep currently being displayed. | |
Package Functions | |
DetailedOutputFileManager | GetDetailedOutputFileManager () |
Gets the file manager for this detailed output file. | |
Private Member Functions | |
void | Step (int iDirection) throws ModelException |
Steps the model in the desired direction. | |
void | Jump () throws ModelException |
Jumps the model to the timestep indicated in m_jJumpToTimestepField. | |
void | Run (int iDirection) throws ModelException |
Runs the detailed output file continuously through the timesteps. | |
Private Attributes | |
JLabel | m_jCurrentTimestepLabel = new JLabel() |
Label displaying current timestep. | |
JTextField | m_jRateField = new JTextField("1") |
Field for the rate at which to step or run through the detailed output file. | |
JTextField | m_jJumpToTimestepField = new JTextField("0") |
Field for the user to enter a particular timestep to jump to. | |
int | m_iCurrentTimestep |
The timestep of the data currently being displayed. | |
int | m_iMaxTimestep |
The maximum timestep for this file. | |
boolean | m_bStop = false |
Flag for whether to stop when the file is running through timesteps. | |
boolean | m_bRunning = false |
Flag for whether or not we're currently running. | |
Static Private Attributes | |
static final int | FORWARD = 1 |
Flag for moving forward through timesteps. | |
static final int | BACKWARD = 2 |
Flag for moving backward through timesteps. |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
|
Constructor.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Responds to button presses.
|
|
Gets the timestep currently being displayed.
|
|
Gets the file manager for this detailed output file.
|
|
Gets the number of timesteps contained in this detailed output file.
|
|
Changes the display to the desired timestep. If the requested timestep is beyond the boundaries of possible timesteps, nothing happens.
|
|
Jumps the model to the timestep indicated in m_jJumpToTimestepField.
|
|
Runs the detailed output file continuously through the timesteps. It will jump at the rate specified in the m_jRateField field. This will put the running in a separate thread so we can listen if the user wants to stop.
|
|
Updates the legend with a new maximum number of timesteps.
|
|
Steps the model in the desired direction. The model will be stepped the number of timesteps indicated in the rate field.
|