public interface

SeriesDataset

implements Dataset
org.jfree.data.general.SeriesDataset
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract int getSeriesCount()
Returns the number of series in the dataset.
abstract Comparable getSeriesKey(int series)
Returns the key for a series.
abstract 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.
[Expand]
Inherited Methods
From interface org.jfree.data.general.Dataset

Public Methods

public abstract int getSeriesCount ()

Returns the number of series in the dataset.

Returns
  • The series count.

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

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