Inheritance diagram for datavisualizer::ShortOutputFileManager:
Public Member Functions | |
void | UpdateCurrentRunCharts () throws ModelException |
Updates charts for a current run. | |
void | UpdateCharts () throws ModelException |
Redraws all open chart objects, except tables. | |
String[] | GetTableOptions () |
Gets table options. | |
String[] | GetHistogramOptions () |
No histogram options for this type of chart. | |
String[] | GetMapOptions () |
No map options for this type of chart. | |
String[] | GetLineGraphOptions () |
Gets the line graph options. | |
ShortOutputFileManager (String sFileName) throws ModelException | |
Constructor. | |
Protected Member Functions | |
JInternalFrame | DrawChart (String sGraphName) throws ModelException |
Draws a requested chart. | |
void | UpdateTable (JPanel jTableWindowPanel, int iTimestep, int iSubplot) |
Updates a table window with new data. | |
DefaultCategoryDataset | AdjustVisibleSpecies (DefaultCategoryDataset oDataset, Legend oLegend) throws ModelException |
This will take a dataset and make a copy with only series for species which are supposed to be visible. | |
Private Member Functions | |
Object[][][] | CreateTableDataset (int iTimestep, int iSubplot) |
Creates the datasets for the overview table. | |
JInternalFrame | CreateTable (int iTimestep, int iSubplot, Legend oLegend, String sChartTitle) throws ModelException |
Creates the table. | |
void | ParseFile () throws ModelException |
Reads the file data into the internal arrays. | |
DefaultCategoryDataset | CreateDataset (Float[][] p_fDataToGraph, Float[] p_fTotals) |
Translates data into the CategoryDataset format, which can then be fed to a chart for display. | |
Private Attributes | |
Vector | mp_oDatasets = new Vector(0) |
Datasets for each chart. | |
Float[][][][] | mp_fRBA |
Relative basal area data. | |
Float[][][][] | mp_fABA |
Absolute basal area data. | |
Float[][][][] | mp_fRDN |
Relative density data. | |
Float[][][][] | mp_fADN |
Absolute density data. | |
Float[][][] | mp_fABT |
Absolute basal area totals. | |
Float[][][] | mp_fADT |
Absolute density totals. | |
String[] | mp_sSpeciesNames |
List of species names. | |
String[] | mp_sSubplotNames = null |
List of subplot names. | |
String | m_sFileDisplayName |
Display string of filename - should have the last 20 chars. | |
int | m_iNumTypes = 4 |
Number of tree types that this object is willing to work with. | |
int | m_iNumSubplots = 1 |
Number of subplots in this file. | |
int | m_iNumSpecies = 0 |
Number of species in the file. | |
int | m_iNumTimesteps = 0 |
Number of timesteps in the file. | |
Static Private Attributes | |
static final int | SEEDLING = 0 |
Seedling. | |
static final int | SAPLING = 1 |
Sapling. | |
static final int | ADULT = 2 |
Adult. | |
static final int | SNAG = 3 |
Snag. | |
static final int | RELATIVE_BASAL_AREA = 4 |
Relative basal area chart type. | |
static final int | RELATIVE_DENSITY = 5 |
Relative density chart type. | |
static final int | ABSOLUTE_BASAL_AREA = 6 |
Absolute basal area chart type. | |
static final int | ABSOLUTE_DENSITY = 7 |
Absolute density chart type. | |
Classes | |
class | LineGraphFileWriter |
Takes care of writing out a line graph's data. More... | |
class | TableFileWriter |
Writes out table data to file. More... |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
|
Constructor. Analyzes the output file for the data it contains.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) June 25, 2004: Added snag support (LEM) July 15, 2004: Added subplot support (LEM) |
|
This will take a dataset and make a copy with only series for species which are supposed to be visible.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Translates data into the CategoryDataset format, which can then be fed to a chart for display.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Creates the table. There are four sub-tables, one each for seedlings, saplings, adults, and snags. The tables are arranged in two rows, with adults and saplings in the top row and snags and seedlings in the bottom row. A pair of buttons is added to advance the table forward and back.
Edit history: ------------------ July 27, 2004: Created (LEM) |
|
Creates the datasets for the overview table. This creates four table datasets, one each for seedlings, saplings, adults, and snags. All numbers are placed in as formatted strings with a max of 2 decimal places.
|
|
Draws a requested chart.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) June 25, 2004: Added snag support (LEM) July 15, 2004: Added subplot support (LEM) July 27, 2004: Added the table (LEM) Implements datavisualizer::DataFileManager. |
|
No histogram options for this type of chart.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Implements datavisualizer::DataFileManager. |
|
Gets the line graph options.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM)] June 25, 2004: Added snags (LEM) July 15, 2004: Added subplots (LEM) Implements datavisualizer::DataFileManager. |
|
No map options for this type of chart.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Implements datavisualizer::DataFileManager. |
|
Gets table options. A summary table can be created from this file type.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) July 27, 2004: Implemented (LEM) Implements datavisualizer::DataFileManager. |
|
Reads the file data into the internal arrays.
Edit history: ------------------ June 29, 2005: Put the relative values as percentages (LEM) |
|
Redraws all open chart objects, except tables. Tables are not affected by any incidence that affects the other charts, such as clicking species on the legend.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Implements datavisualizer::DataFileManager. |
|
Updates charts for a current run. This reparses and redraws the charts from scratch, since they show the cumulative history of a run.
Edit history: ------------------ November 18, 2004: Created (LEM) Implements datavisualizer::DataFileManager. |
|
Updates a table window with new data.
|
|
Absolute basal area data. Array indexes are #1 - subplot, #2 - type, #3 - species, and #4 - timestep. |
|
Absolute basal area totals. Array indexes are #1 - subplot, #2 - type, and #3 - timestep. |
|
Absolute density data. Array indexes are #1 - subplot, #2 - type, #3 - species, and #4 - timestep. |
|
Absolute density totals. Array indexes are #1 - subplot, #2 - type, and #3 - timestep. |
|
Relative basal area data. Array indexes are #1 - subplot, #2 - type, #3 - species, and #4 - timestep. |
|
Relative density data. Array indexes are #1 - subplot, #2 - type, #3 - species, and #4 - timestep. |