Inheritance diagram for datavisualizer::StockTableDataRequest:
Public Member Functions | |
StockTableDataRequest (DetailedOutputFileManager oManager, String sChartName) | |
Constructor. | |
void | actionPerformed (java.awt.event.ActionEvent oEvent) |
Respons to the button clicks for this class's chart window. | |
boolean | WantAnyTreeFloats () |
This wants diameter values for all trees. | |
void | AddTreeFloatDataMemberCode (int iSpecies, int iType, String sLabel, int iCode) |
Accepts a tree float data member code. | |
void | AddTreeFloatData (int iSpecies, int iType, int iCode, float fVal) |
Accepts a tree float data member value. | |
Protected Member Functions | |
void | WriteTables () throws javawrapper.ModelException |
This writes the tables. | |
void | WriteChartDataToFile (java.io.FileWriter jOut) throws java.io. IOException |
Saves the data in the current table as a tab-delimited text file. | |
Package Functions | |
void | UpdateChart (Legend oLegend) throws javawrapper.ModelException |
Does nothing unless the number of timesteps is different, in which case the table is recreated. | |
ModelInternalFrame | DrawChart (Legend oLegend, String sChartTitle) throws javawrapper.ModelException |
Draws the table. | |
void | ClearData () throws javawrapper.ModelException |
Does nothing, because this table doesn't operate on the detailed output file timescale. |
The stock table displays volume data for a run as well as differences from the previous timestep. All values are displayed in cubic meters per hectare units. These values are broken up by size class as specified by the user. The tallest trees will also be included in the table if height was saved in the detailed output file.
This chart is different from other charts in that it displays data from all timesteps at once, instead of one timestep at a time. Thus, it tends to ignore normal chart drawing requests and has its own code to force parsing of all timestep files in a detailed output package at once.
Copyright: Copyright (c) Charles D. Canham 2003 Company: Institute of Ecosystem Studies
datavisualizer::StockTableDataRequest::StockTableDataRequest | ( | DetailedOutputFileManager | oManager, | |
String | sChartName | |||
) | [inline] |
Constructor.
Declares all the arrays.
oManager | Parent detailed output file manager | |
sChartName | Name of the table being drawn. |
void datavisualizer::StockTableDataRequest::actionPerformed | ( | java.awt.event.ActionEvent | oEvent | ) | [inline] |
Respons to the button clicks for this class's chart window.
oEvent | ActionEvent Event to process. |
Reimplemented from datavisualizer::DataRequest.
void datavisualizer::StockTableDataRequest::WriteTables | ( | ) | throws javawrapper.ModelException [inline, protected] |
This writes the tables.
It forces the DetailedOutputFileManager to move through each timestep so the data can be collected. Then it formats the table into the chart window.
ModelException | if there is a problem parsing the data. |
void datavisualizer::StockTableDataRequest::WriteChartDataToFile | ( | java.io.FileWriter | jOut | ) | throws java.io. IOException [inline, protected, virtual] |
Saves the data in the current table as a tab-delimited text file.
jOut | java.io.FileWriter The file to write to. |
java.io.IOException | if there's a problem writing the file. |
Implements datavisualizer::DataRequest.
void datavisualizer::StockTableDataRequest::UpdateChart | ( | Legend | oLegend | ) | throws javawrapper.ModelException [inline, package, virtual] |
Does nothing unless the number of timesteps is different, in which case the table is recreated.
This chart does not respond to regular chart update events, since it already shows data for all timesteps.
oLegend | Legend The legend for this chart. |
ModelException | Won't be thrown. |
Implements datavisualizer::DataRequest.
ModelInternalFrame datavisualizer::StockTableDataRequest::DrawChart | ( | Legend | oLegend, | |
String | sChartTitle | |||
) | throws javawrapper.ModelException [inline, package, virtual] |
Draws the table.
Initially, there will be no table; just a place for a user to enter size class information.
oLegend | Legend Legend for this chart. | |
sChartTitle | String Chart name for the window title. |
ModelException | Passed through from other called methods - this method doesn't throw it. |
Implements datavisualizer::DataRequest.
void datavisualizer::StockTableDataRequest::ClearData | ( | ) | throws javawrapper.ModelException [inline, package, virtual] |
Does nothing, because this table doesn't operate on the detailed output file timescale.
ModelException | Won't throw it. |
Implements datavisualizer::DataRequest.
boolean datavisualizer::StockTableDataRequest::WantAnyTreeFloats | ( | ) | [inline] |
This wants diameter values for all trees.
Reimplemented from datavisualizer::DataRequest.
void datavisualizer::StockTableDataRequest::AddTreeFloatDataMemberCode | ( | int | iSpecies, | |
int | iType, | |||
String | sLabel, | |||
int | iCode | |||
) | [inline] |
Accepts a tree float data member code.
We're looking for DBH and height.
iSpecies | The species for which this is a data member. | |
iType | The tree type for which this is a data member. | |
sLabel | The label of the data member. | |
iCode | The data member code. |
Reimplemented from datavisualizer::DataRequest.
void datavisualizer::StockTableDataRequest::AddTreeFloatData | ( | int | iSpecies, | |
int | iType, | |||
int | iCode, | |||
float | fVal | |||
) | [inline] |
Accepts a tree float data member value.
If it matches our code, we'll increment either the density count (if m_iTableType = DENSITY) or the basal area total.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
iCode | Data member code of this value. | |
fVal | Value. |
Reimplemented from datavisualizer::DataRequest.