Public Member Functions | |
| void | addSeries (String sName, double[] p_fValues, int iNumberOfBins, float fBinSize) |
| Adds a series. | |
| void | AddTotalSeries () |
| Adds a series that is, for each bin, a total of the values of all other series' values in that bin. | |
| int | getSeriesCount () |
| Returns the number of series in the dataset. | |
| String | getSeriesName (int series) |
| Returns the name for a series. | |
| int | getItemCount (int series) |
| Returns the number of data items for a series. | |
| Number | getXValue (int series, int item) |
| Returns the X value for a bin. | |
| Number | getYValue (int series, int item) |
| Returns the Y value for a bin. | |
| void | setYValue (int series, int item, float iValue) |
| Sets the Y value for a bin. | |
| Number | getStartXValue (int series, int item) |
| Returns the start value for a bin. | |
| Number | getEndXValue (int series, int item) |
| Returns the end value for a bin. | |
| Number | getStartYValue (int series, int item) |
| Returns the Y value for a bin. | |
| Number | getEndYValue (int series, int item) |
| Returns the Y value for a bin. | |
| void | RemoveSeries (int series) |
| I added this. | |
| Object | clone () |
| I added this. | |
Private Member Functions | |
| HistogramBin[] | getBins (int series) |
| Returns the bins for a series. | |
| int | getTotal (int series) |
| Returns the total for a series. | |
| double | getBinWidth (int series) |
| Returns the bin width for a series. | |
Private Attributes | |
| List | list = new ArrayList() |
| Histogram list. | |
It did not suit my needs - particularly the ability to modify series. So I've made my own.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
|
||||||||||||||||||||
|
Adds a series.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
|
Adds a series that is, for each bin, a total of the values of all other series' values in that bin.
|
|
|
I added this. This creates a deep-enough clone of the dataset. The array list is cloned but not the underlying values - it is enough to be able to remove references in the clone. I don't need it deeper, so I didn't write it deeper.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
|
Returns the bins for a series.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
|
Returns the bin width for a series.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
||||||||||||
|
Returns the end value for a bin.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
||||||||||||
|
Returns the Y value for a bin.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
|
Returns the number of data items for a series.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
|
Returns the number of series in the dataset.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
|
Returns the name for a series.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
||||||||||||
|
Returns the start value for a bin.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
||||||||||||
|
Returns the Y value for a bin.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
|
Returns the total for a series.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
||||||||||||
|
Returns the X value for a bin. This value won't be used for plotting histograms, since the renderer will ignore it. But other renderers can use it (for example, you could use the dataset to create a line chart).
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
||||||||||||
|
Returns the Y value for a bin.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
|
I added this. I wanted to be able to remove a series.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
||||||||||||||||
|
Sets the Y value for a bin. Added by Lora to allow for adjusting values to be per hectare.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) June 28, 2004: Made the count argument a float (LEM) |
1.4.6-NO