Inheritance diagram for datavisualizer::GridHistogramDataRequest:
Public Member Functions | |
GridHistogramDataRequest (String sLabel, boolean bIsFloat, DetailedOutputFileManager oManager, String sGraphName, String sGridName) | |
Constructor. | |
void | actionPerformed (ActionEvent oEvent) |
Performs actions for the controls in the Histogram window. | |
float | GetBinSize () |
Gets the bin size for this data request's histogram. | |
boolean | GetUseLogarithmicAxis () |
Gets whether or not to use a logarithmic axis. | |
void | AddGridFloatDataMemberCode (String sGridName, String sLabel, int iCode) |
Captures the data member code if we're graphing a float. | |
void | AddGridIntDataMemberCode (String sGridName, String sLabel, int iCode) |
Captures the data member code if we're graphing an integer. | |
boolean | WantAnyGridInts () |
If our data piece that's being graphed is an integer, this returns true. | |
boolean | WantAnyGridFloats () |
If our data piece that's being graphed is a float, this returns true. | |
void | AddGridFloatData (String sGridName, int iX, int iY, int iCode, float fVal) |
Accepts the value of our data member from the parser, if float. | |
void | AddGridIntData (String sGridName, int iX, int iY, int iCode, int iVal) |
This will add the integer data, if the data for this chart is an int that matches the data member code. | |
void | SaveChartDataToFile (boolean bJustCurrTS) |
Writes a chart's data to a file. | |
Protected Member Functions | |
void | WriteChartDataToFile (java.io.FileWriter jOut) throws java.io. IOException |
Writes the histogram's data to tab-delimited text. | |
float | GetDatasetMean () |
Calculates the mean value of all values currently in mp_oData. | |
void | AddSeriesToDataset () |
This will add all series to the dataset. | |
Protected Attributes | |
ModelHistogramDataset | m_oDataset |
The dataset that will be graphed. | |
Package Functions | |
ModelInternalFrame | DrawChart (Legend oLegend, String sChartTitle) throws ModelException |
Creates the histogram using data accumulated thus far. | |
void | UpdateChart (Legend oLegend) throws ModelException |
Updates the histogram. | |
void | ClearData () |
This nulls our dataset and recreates it, and clears all of our data vectors. | |
Package Attributes | |
java.text.DecimalFormat | m_jSmallNumsFormat |
Formatter for very small numbers. |
The label of the data is passed in the constructor. The histogram is defaulted to 10 divisions equally divided between their minimum and maximum values.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
datavisualizer::GridHistogramDataRequest::GridHistogramDataRequest | ( | String | sLabel, | |
boolean | bIsFloat, | |||
DetailedOutputFileManager | oManager, | |||
String | sGraphName, | |||
String | sGridName | |||
) | [inline] |
Constructor.
sLabel | Label of the piece of data, as it would be passed as a data member code. | |
bIsFloat | Whether this is float data. If this is set to false, integer data is assumed. | |
oManager | The parent detailed output file manager. | |
sGraphName | Name of graph string. | |
sGridName | Name of grid. |
void datavisualizer::GridHistogramDataRequest::WriteChartDataToFile | ( | java.io.FileWriter | jOut | ) | throws java.io. IOException [inline, protected, virtual] |
Writes the histogram'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::GridHistogramDataRequest::actionPerformed | ( | ActionEvent | oEvent | ) | [inline] |
Performs actions for the controls in the Histogram window.
oEvent | Event triggered. |
float datavisualizer::GridHistogramDataRequest::GetBinSize | ( | ) | [inline] |
Gets the bin size for this data request's histogram.
boolean datavisualizer::GridHistogramDataRequest::GetUseLogarithmicAxis | ( | ) | [inline] |
Gets whether or not to use a logarithmic axis.
void datavisualizer::GridHistogramDataRequest::AddGridFloatDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | [inline] |
Captures the data member code if we're graphing a float.
sGridName | Name of the grid | |
sLabel | The label of the data member. | |
iCode | The data member code. |
Reimplemented from datavisualizer::DataRequest.
void datavisualizer::GridHistogramDataRequest::AddGridIntDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | [inline] |
Captures the data member code if we're graphing an integer.
sGridName | Name of the grid | |
sLabel | The label of the data member. | |
iCode | The data member code. |
Reimplemented from datavisualizer::DataRequest.
ModelInternalFrame datavisualizer::GridHistogramDataRequest::DrawChart | ( | Legend | oLegend, | |
String | sChartTitle | |||
) | throws ModelException [inline, package, virtual] |
Creates the histogram using data accumulated thus far.
oLegend | Legend for this chart. | |
sChartTitle | Title for this chart. |
datavisualizer.ModelException | Passing through underlying exceptions. |
Implements datavisualizer::DataRequest.
float datavisualizer::GridHistogramDataRequest::GetDatasetMean | ( | ) | [inline, protected] |
Calculates the mean value of all values currently in mp_oData.
void datavisualizer::GridHistogramDataRequest::AddSeriesToDataset | ( | ) | [inline, protected] |
This will add all series to the dataset.
Edit history:
------------------ March 29, 2005: Created (LEM)
void datavisualizer::GridHistogramDataRequest::UpdateChart | ( | Legend | oLegend | ) | throws ModelException [inline, package, virtual] |
Updates the histogram.
oLegend | Legend for this chart. |
datavisualizer.ModelException | Passing through an underlying exception. |
Implements datavisualizer::DataRequest.
boolean datavisualizer::GridHistogramDataRequest::WantAnyGridInts | ( | ) | [inline] |
If our data piece that's being graphed is an integer, this returns true.
Otherwise, false.
Reimplemented from datavisualizer::DataRequest.
boolean datavisualizer::GridHistogramDataRequest::WantAnyGridFloats | ( | ) | [inline] |
If our data piece that's being graphed is a float, this returns true.
Otherwise, false.
Reimplemented from datavisualizer::DataRequest.
void datavisualizer::GridHistogramDataRequest::ClearData | ( | ) | [inline, package, virtual] |
This nulls our dataset and recreates it, and clears all of our data vectors.
Edit history:
------------------ March 29, 2005: Created (LEM)
Implements datavisualizer::DataRequest.
void datavisualizer::GridHistogramDataRequest::AddGridFloatData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
float | fVal | |||
) | [inline] |
Accepts the value of our data member from the parser, if float.
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.
void datavisualizer::GridHistogramDataRequest::AddGridIntData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
int | iVal | |||
) | [inline] |
This will add the integer data, if the data for this chart is an int that matches the data member code.
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. | |
iVal | Value. |
Reimplemented from datavisualizer::DataRequest.
void datavisualizer::GridHistogramDataRequest::SaveChartDataToFile | ( | boolean | bJustCurrTS | ) | [inline] |
Writes a chart's data to a file.
This is overwritten to improve formatting for whole-run file writing. This will write it as one big table rather than as a whole bunch of little tables.
bJustCurrTS | If true, writes for only the current timestep. If false, writes for the whole run. |
Reimplemented from datavisualizer::DataRequest.