Inheritance diagram for datavisualizer::HistogramDataRequest:
Public Member Functions | |
HistogramDataRequest (String sLabel, boolean bIsFloat, DetailedOutputFileManager oManager, String sGraphName) | |
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 | AddTreeFloatDataMemberCode (int iSpecies, int iType, String sLabel, int iCode) |
If the label matches the one given in the constructor, and the data being histogrammed is a float, this captures the values passed. | |
void | AddTreeIntData (int iSpecies, int iType, 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 | AddTreeIntDataMemberCode (int iSpecies, int iType, String sLabel, int iCode) |
If the label matches the one given in the constructor, and the data being histogrammed is an int, this captures the values passed. | |
boolean | WantAnyTreeInts () |
If our data piece that's being graphed is an integer, this returns true. | |
boolean | WantAnyTreeFloats () |
If our data piece that's being graphed is a float, this returns true. | |
void | AddTreeFloatData (int iSpecies, int iType, int iCode, float fVal) |
This will add the float data, if the data for this chart is a float that matches the data member code. | |
Protected Member Functions | |
void | WriteChartDataToFile (java.io.FileWriter jOut) throws java.io. IOException |
Writes the histogram's data to tab-delimited text. | |
ModelHistogramDataset | UpdateForVisible (Legend oLegend) throws ModelException |
Copies our dataset and includes only species marked as visible in the legend. | |
void | AddSeriesToDataset () throws ModelException |
This will add all series to the dataset. | |
Protected Attributes | |
ModelHistogramDataset | m_oDataset |
The dataset that will be graphed. | |
Package Functions | |
JInternalFrame | 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. | |
Private Attributes | |
String | m_sLabel |
Data member's label, as it appears in the detailed output file. | |
boolean | m_bIsFloat |
Whether our data member being graphed is a float or integer. | |
boolean | m_bIsInt |
JTextField | m_jNumBins = new JTextField("") |
Field displaying the number of bins in the histogram. | |
JTextField | m_jBinSize = new JTextField("") |
Field displaying the bin size in the histogram. | |
int[][] | mp_iDataMemberCodes |
The data member codes for this data member - one per species / type. | |
Vector[] | mp_oData |
The data - kept in an array of vectors - one per species. | |
float | m_fPlotAreaInHectares |
Plot area in hectares. | |
float | m_fBinSize |
Size of the histogram bins. | |
int | m_iNumBins |
Number of bins in the histogram. | |
boolean | m_bUseLogarithmicAxis |
Whether or not to use a logarithmic axis on the Y. | |
boolean | m_bRecalcBinsOnUpdate |
Whether or not we have to recalculate the bins on chart update (i.e. | |
boolean | m_bShowTotal = true |
Whether or not to display a total bar in each bin. |
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
|
Constructor.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Performs actions for the controls in the Histogram window.
|
|
This will add all series to the dataset.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) December 6, 2004: Added a series for total (LEM) |
|
This will add the float data, if the data for this chart is a float that matches the data member code.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from datavisualizer::DataRequest. |
|
If the label matches the one given in the constructor, and the data being histogrammed is a float, this captures the values passed.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from datavisualizer::DataRequest. |
|
This will add the integer data, if the data for this chart is an int that matches the data member code.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from datavisualizer::DataRequest. |
|
If the label matches the one given in the constructor, and the data being histogrammed is an int, this captures the values passed.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from datavisualizer::DataRequest. |
|
This nulls our dataset and recreates it, and clears all of our data vectors.
Implements datavisualizer::DataRequest. |
|
Creates the histogram using data accumulated thus far.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) June 28, 2004: Made the histogram bars display floats (LEM) Implements datavisualizer::DataRequest. |
|
Gets the bin size for this data request's histogram.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets whether or not to use a logarithmic axis.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Updates the histogram.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Implements datavisualizer::DataRequest. |
|
Copies our dataset and includes only species marked as visible in the legend.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
If our data piece that's being graphed is a float, this returns true. Otherwise, false.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from datavisualizer::DataRequest. |
|
If our data piece that's being graphed is an integer, this returns true. Otherwise, false.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from datavisualizer::DataRequest. |
|
Writes the histogram's data to tab-delimited text.
Implements datavisualizer::DataRequest. |
|
Whether or not we have to recalculate the bins on chart update (i.e. we are charting an unknown data type without defaults) |