com.jrefinery.data
Interface XYDataset

All Superinterfaces:
Dataset, SeriesDataset
All Known Subinterfaces:
HighLowDataset, IntervalXYDataset, IntervalXYZDataset, SignalsDataset, WindDataset, XYZDataset
All Known Implementing Classes:
CombinedDataset, CombinedXYDataset, CompassDataset, CTDXYDataset, DefaultHighLowDataset, DefaultWindDataset, DefaultXYDataset, EnvXYDataset, JdbcXYDataset, com.jrefinery.chart.demo.SampleXYDataset, SiamCompassDataset, SiamXYDataset, SubSeriesDataset, TimeSeriesCollection, XYSeriesCollection

public interface XYDataset
extends SeriesDataset

An interface through which data in the form of (x, y) pairs can be accessed.

JFreeChart (http://www.jrefinery.com/jfreechart) uses this interface to obtain (x, y) data for plotting charts.


Method Summary
 int getItemCount(int series)
          Returns the number of items in a series.
 java.lang.Number getXValue(int series, int item)
          Returns the x-value for an item within a series.
 java.lang.Number getYValue(int series, int item)
          Returns the y-value for an item within a series.
 
Methods inherited from interface com.jrefinery.data.SeriesDataset
getSeriesCount, getSeriesName
 
Methods inherited from interface com.jrefinery.data.Dataset
addChangeListener, removeChangeListener
 

Method Detail

getItemCount

int getItemCount(int series)
Returns the number of items in a series.

Parameters:
series - The series (zero-based index).
Returns:
The number of items within a series.

getXValue

java.lang.Number getXValue(int series,
                           int item)
Returns the x-value for an item within a series.

The implementation is responsible for ensuring that the x-values are presented in ascending order.

Parameters:
series - The series (zero-based index).
item - The item (zero-based index).
Returns:
The x-value for an item within a series.

getYValue

java.lang.Number getYValue(int series,
                           int item)
Returns the y-value for an item within a series.

Parameters:
series - The series (zero-based index).
item - The item (zero-based index).
Returns:
The y-value for an item within a series.


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.