SORTIE Java Interface
1
|
A simple implementation of the jorg.jfree.data.xyXYZDataset interface that stores data values in arrays of bool primitives. More...
Public Member Functions | |
XYZSimpleDataset (int iNumSeries, int iNumXCells, int iNumYCells) | |
Constructor. More... | |
int | getSeriesCount () |
Returns the number of series in the dataset. More... | |
Comparable< String > | getSeriesKey (int series) |
Returns the key for a series. More... | |
int | indexOf (Comparable seriesKey) |
Returns the index of the series with the specified key, or -1 if there is no such series in the dataset. More... | |
org.jfree.data.DomainOrder | getDomainOrder () |
Returns the order of the domain (x-) values in the dataset. More... | |
int | getItemCount (int series) |
Returns the number of items in the specified series. More... | |
double | getXValue (int series, int item) |
Returns the x-value for an item within a series. More... | |
Number | getX (int series, int item) |
Returns the x-value for an item within a series. More... | |
double | getYValue (int series, int item) |
Returns the y-value for an item within a series. More... | |
Number | getY (int series, int item) |
Returns the y-value for an item within a series. More... | |
double | getZValue (int series, int item) |
Returns the z-value for an item within a series. More... | |
Number | getZ (int series, int item) |
Returns the z-value for an item within a series. More... | |
Object | clone () |
Public Attributes | |
String [] | mp_sSeriesKeys |
Storage for the series keys. More... | |
boolean [][][] | mp_bData |
Storage for the series in the dataset. More... | |
int | m_iNumXCells = 0 |
Number of X cells. More... | |
A simple implementation of the jorg.jfree.data.xyXYZDataset interface that stores data values in arrays of bool primitives.
Stolen and modded from the original in JFreeChart by Lora E. Murphy. I did this for speed and ease, and to work with my XYSimpleCellRenderer.
Edit history:
---------------—
December 21, 2006: Created during upgrade to JFreeChart 1.0.3 (LEM)
February 4, 2008: Updated to conform to Java 6 compliance (LEM)
sortie.datavisualizer.XYZSimpleDataset.XYZSimpleDataset | ( | int | iNumSeries, |
int | iNumXCells, | ||
int | iNumYCells | ||
) |
Constructor.
iNumSeries | Number of dataset series. |
iNumXCells | Number of X cells. |
iNumYCells | Number of Y cells. |
Object sortie.datavisualizer.XYZSimpleDataset.clone | ( | ) |
org.jfree.data.DomainOrder sortie.datavisualizer.XYZSimpleDataset.getDomainOrder | ( | ) |
Returns the order of the domain (x-) values in the dataset.
In this implementation, we cannot guarantee that the x-values are ordered, so this method returns DomainOrder.NONE
.
DomainOrder.NONE
. int sortie.datavisualizer.XYZSimpleDataset.getItemCount | ( | int | series | ) |
Returns the number of items in the specified series.
series | the series index (in the range 0 to getSeriesCount() - 1). |
IllegalArgumentException | if series is not in the specified range. |
int sortie.datavisualizer.XYZSimpleDataset.getSeriesCount | ( | ) |
Returns the number of series in the dataset.
Comparable<String> sortie.datavisualizer.XYZSimpleDataset.getSeriesKey | ( | int | series | ) |
Returns the key for a series.
series | the series index (in the range 0 to getSeriesCount() - 1). |
IllegalArgumentException | if series is not in the specified range. |
Number sortie.datavisualizer.XYZSimpleDataset.getX | ( | int | series, |
int | item | ||
) |
Returns the x-value for an item within a series.
series | the series index (in the range 0 to getSeriesCount() - 1). |
item | the item index (in the range 0 to getItemCount(series)). |
double sortie.datavisualizer.XYZSimpleDataset.getXValue | ( | int | series, |
int | item | ||
) |
Returns the x-value for an item within a series.
series | the series index (in the range 0 to getSeriesCount() - 1). |
item | the item index (in the range 0 to getItemCount(series)). |
Number sortie.datavisualizer.XYZSimpleDataset.getY | ( | int | series, |
int | item | ||
) |
Returns the y-value for an item within a series.
series | the series index (in the range 0 to getSeriesCount() - 1). |
item | the item index (in the range 0 to getItemCount(series)). |
double sortie.datavisualizer.XYZSimpleDataset.getYValue | ( | int | series, |
int | item | ||
) |
Returns the y-value for an item within a series.
series | the series index (in the range 0 to getSeriesCount() - 1). |
item | the item index (in the range 0 to getItemCount(series)). |
Number sortie.datavisualizer.XYZSimpleDataset.getZ | ( | int | series, |
int | item | ||
) |
Returns the z-value for an item within a series.
series | the series index (in the range 0 to getSeriesCount() - 1). |
item | the item index (in the range 0 to getItemCount(series)). |
double sortie.datavisualizer.XYZSimpleDataset.getZValue | ( | int | series, |
int | item | ||
) |
Returns the z-value for an item within a series.
series | the series index (in the range 0 to getSeriesCount() - 1). |
item | the item index (in the range 0 to getItemCount(series)). |
int sortie.datavisualizer.XYZSimpleDataset.indexOf | ( | Comparable | seriesKey | ) |
Returns the index of the series with the specified key, or -1 if there is no such series in the dataset.
seriesKey | the series key (null permitted). |
int sortie.datavisualizer.XYZSimpleDataset.m_iNumXCells = 0 |
Number of X cells.
boolean [][][] sortie.datavisualizer.XYZSimpleDataset.mp_bData |
Storage for the series in the dataset.
This is a grid of values sized
Now: We will fake the XYZ data structure of JFreeChart. That would mean that each series was a collection of objects each with 3 values, one being X, one being Y, and one being Z. We will pretend that we are doing it that way, holding all values for the grid in order, and the indexing goes (X Cell * Num X Cells) + Y Cell.
True means a value is selected. False means it is not.
String [] sortie.datavisualizer.XYZSimpleDataset.mp_sSeriesKeys |
Storage for the series keys.