SORTIE Java Interface  1
Public Member Functions | Public Attributes | List of all members
sortie.datavisualizer.XYZSimpleDataset Class Reference

A simple implementation of the jorg.jfree.data.xyXYZDataset interface that stores data values in arrays of bool primitives. More...

Inheritance diagram for sortie.datavisualizer.XYZSimpleDataset:

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...
 

Detailed Description

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)

Constructor & Destructor Documentation

◆ XYZSimpleDataset()

sortie.datavisualizer.XYZSimpleDataset.XYZSimpleDataset ( int  iNumSeries,
int  iNumXCells,
int  iNumYCells 
)

Constructor.

Parameters
iNumSeriesNumber of dataset series.
iNumXCellsNumber of X cells.
iNumYCellsNumber of Y cells.

Member Function Documentation

◆ clone()

Object sortie.datavisualizer.XYZSimpleDataset.clone ( )

◆ getDomainOrder()

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.

Returns
DomainOrder.NONE.

◆ getItemCount()

int sortie.datavisualizer.XYZSimpleDataset.getItemCount ( int  series)

Returns the number of items in the specified series.

Parameters
seriesthe series index (in the range 0 to getSeriesCount() - 1).
Returns
The item count.
Exceptions
IllegalArgumentExceptionif series is not in the specified range.

◆ getSeriesCount()

int sortie.datavisualizer.XYZSimpleDataset.getSeriesCount ( )

Returns the number of series in the dataset.

Returns
The series count.

◆ getSeriesKey()

Comparable<String> sortie.datavisualizer.XYZSimpleDataset.getSeriesKey ( int  series)

Returns the key for a series.

Parameters
seriesthe series index (in the range 0 to getSeriesCount() - 1).
Returns
The key for the series.
Exceptions
IllegalArgumentExceptionif series is not in the specified range.

◆ getX()

Number sortie.datavisualizer.XYZSimpleDataset.getX ( int  series,
int  item 
)

Returns the x-value for an item within a series.

Parameters
seriesthe series index (in the range 0 to getSeriesCount() - 1).
itemthe item index (in the range 0 to getItemCount(series)).
Returns
The x-value.

◆ getXValue()

double sortie.datavisualizer.XYZSimpleDataset.getXValue ( int  series,
int  item 
)

Returns the x-value for an item within a series.

Parameters
seriesthe series index (in the range 0 to getSeriesCount() - 1).
itemthe item index (in the range 0 to getItemCount(series)).
Returns
The x-value.

◆ getY()

Number sortie.datavisualizer.XYZSimpleDataset.getY ( int  series,
int  item 
)

Returns the y-value for an item within a series.

Parameters
seriesthe series index (in the range 0 to getSeriesCount() - 1).
itemthe item index (in the range 0 to getItemCount(series)).
Returns
The y-value.

◆ getYValue()

double sortie.datavisualizer.XYZSimpleDataset.getYValue ( int  series,
int  item 
)

Returns the y-value for an item within a series.

Parameters
seriesthe series index (in the range 0 to getSeriesCount() - 1).
itemthe item index (in the range 0 to getItemCount(series)).
Returns
The y-value.

◆ getZ()

Number sortie.datavisualizer.XYZSimpleDataset.getZ ( int  series,
int  item 
)

Returns the z-value for an item within a series.

Parameters
seriesthe series index (in the range 0 to getSeriesCount() - 1).
itemthe item index (in the range 0 to getItemCount(series)).
Returns
The z-value.

◆ getZValue()

double sortie.datavisualizer.XYZSimpleDataset.getZValue ( int  series,
int  item 
)

Returns the z-value for an item within a series.

Parameters
seriesthe series index (in the range 0 to getSeriesCount() - 1).
itemthe item index (in the range 0 to getItemCount(series)).
Returns
The z-value, 1 for true, 0 for false.

◆ indexOf()

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.

Parameters
seriesKeythe series key (null permitted).
Returns
The index, or -1.

Member Data Documentation

◆ m_iNumXCells

int sortie.datavisualizer.XYZSimpleDataset.m_iNumXCells = 0

Number of X cells.

◆ mp_bData

boolean [][][] sortie.datavisualizer.XYZSimpleDataset.mp_bData

Storage for the series in the dataset.

This is a grid of values sized

series by # plot X cells by # plot Y cells.

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.

◆ mp_sSeriesKeys

String [] sortie.datavisualizer.XYZSimpleDataset.mp_sSeriesKeys

Storage for the series keys.


The documentation for this class was generated from the following file: