org.jfree.data.general

Interface SeriesDataset

public interface SeriesDataset extends Dataset

The interface for a dataset consisting of one or many series of data.

See Also: CategoryDataset IntervalXYDataset IntervalXYZDataset XYDataset XYZDataset

Method Summary
intgetSeriesCount()
Returns the number of series in the dataset.
ComparablegetSeriesKey(int series)
Returns the key for a series.
intindexOf(Comparable seriesKey)
Returns the index of the series with the specified key, or -1 if there is no such series in the dataset.

Method Detail

getSeriesCount

public int getSeriesCount()
Returns the number of series in the dataset.

Returns: The series count.

getSeriesKey

public Comparable getSeriesKey(int series)
Returns the key for a series.

Parameters: series the series index (in the range 0 to getSeriesCount() - 1).

Returns: The key for the series.

indexOf

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

Parameters: seriesKey the series key (null permitted).

Returns: The index, or -1.

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.