
Public Member Functions | |
| StateVariableTableDataRequest (String sChartName, DetailedOutputFileManager oManager) throws ModelException | |
| Constructor. | |
| void | AddGridFloatData (String sGridName, int iX, int iY, int iCode, float fVal) |
| This accepts float data. | |
| boolean | WantAnyGridFloats () |
| This wants floats. | |
| void | AddGridFloatDataMemberCode (String sGridName, String sLabel, int iCode) |
| Accepts a grid float data member code for future reference when passed float data members. | |
Protected Member Functions | |
| void | WriteChartDataToFile (java.io.FileWriter jOut) throws java.io. IOException |
| Writes the table's data to tab-delimited text. | |
Package Functions | |
| ModelInternalFrame | DrawChart (Legend oLegend, String sChartTitle) throws ModelException |
| Creates a table of the results that have been collected. | |
| void | UpdateChart (Legend oLegend) throws ModelException |
| Redraws the chart using the existing dataset. | |
| void | ClearData () throws ModelException |
| Clears out existing data. | |
Private Member Functions | |
| JPanel | CreateTable (Legend oLegend) throws ModelException |
| Creates the results table. | |
Private Attributes | |
| float | m_fPrecip |
| The precipitation for this timestep. | |
| float | m_fTemp |
| The temperature for this timestep. | |
| int | m_iPrecipCode |
| The code for the precipitation value. | |
| int | m_iTempCode |
| The code for the temperature value. | |
| String[] | mp_sColumnNames = {"Temperature C", "Precipitation mm"} |
| Table column headers. | |
| String | m_sThisGrid |
| Name of the grid from which the data will be collected. | |
| int | m_iNumCols = 2 |
| Number of columns in the table. | |
This requires the detailed output file to have data saved from the "State Variables" grid.
Copyright: Copyright (c) Charles D. Canham 2010 Company: Institute of Ecosystem Studies
| datavisualizer.StateVariableTableDataRequest.StateVariableTableDataRequest | ( | String | sChartName, | |
| DetailedOutputFileManager | oManager | |||
| ) | throws ModelException |
Constructor.
| sChartName | Name of the chart | |
| oManager | Detailed output file manager |
| ModelException | not really, but I have to declare this. |
| void datavisualizer.StateVariableTableDataRequest.WriteChartDataToFile | ( | java.io.FileWriter | jOut | ) | throws java.io. IOException [protected, virtual] |
Writes the table's data to tab-delimited text.
| 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.StateVariableTableDataRequest.AddGridFloatData | ( | String | sGridName, | |
| int | iX, | |||
| int | iY, | |||
| int | iCode, | |||
| float | fVal | |||
| ) |
This accepts float data.
| sGridName | Name of the grid for this data | |
| iX | X number of the cell from which this value came | |
| iY | Y number of the cell from which this value came | |
| iCode | Data member code of this value. | |
| fVal | Value. |
Reimplemented from datavisualizer.DataRequest.
| boolean datavisualizer.StateVariableTableDataRequest.WantAnyGridFloats | ( | ) |
| void datavisualizer.StateVariableTableDataRequest.AddGridFloatDataMemberCode | ( | String | sGridName, | |
| String | sLabel, | |||
| int | iCode | |||
| ) |
Accepts a grid float data member code for future reference when passed float data members.
| sGridName | Name of the grid | |
| sLabel | The label of the data member. | |
| iCode | The data member code. |
Reimplemented from datavisualizer.DataRequest.
| ModelInternalFrame datavisualizer.StateVariableTableDataRequest.DrawChart | ( | Legend | oLegend, | |
| String | sChartTitle | |||
| ) | throws ModelException [package, virtual] |
Creates a table of the results that have been collected.
| oLegend | The species legend. | |
| sChartTitle | The chart title. |
| datavisualizer.ModelException |
Implements datavisualizer.DataRequest.
| void datavisualizer.StateVariableTableDataRequest.UpdateChart | ( | Legend | oLegend | ) | throws ModelException [package, virtual] |
Redraws the chart using the existing dataset.
| oLegend | The legend for this chart. |
| ModelException | if anything goes wrong with the chart drawing. |
Implements datavisualizer.DataRequest.
| JPanel datavisualizer.StateVariableTableDataRequest.CreateTable | ( | Legend | oLegend | ) | throws ModelException [private] |
Creates the results table.
| oLegend | Legend for this chart. |
| ModelException | If anything goes wrong with the drawing. |
| void datavisualizer.StateVariableTableDataRequest.ClearData | ( | ) | throws ModelException [package, virtual] |
Clears out existing data.
| ModelException | Doesn't throw an exception. |
Implements datavisualizer.DataRequest.
float datavisualizer.StateVariableTableDataRequest.m_fPrecip [private] |
The precipitation for this timestep.
float datavisualizer.StateVariableTableDataRequest.m_fTemp [private] |
The temperature for this timestep.
The code for the precipitation value.
int datavisualizer.StateVariableTableDataRequest.m_iTempCode [private] |
The code for the temperature value.
String [] datavisualizer.StateVariableTableDataRequest.mp_sColumnNames = {"Temperature C", "Precipitation mm"} [private] |
Table column headers.
Putting them here makes them consistent in all possible display methods.
String datavisualizer.StateVariableTableDataRequest.m_sThisGrid [private] |
Name of the grid from which the data will be collected.
int datavisualizer.StateVariableTableDataRequest.m_iNumCols = 2 [private] |
Number of columns in the table.
1.5.6