com.jrefinery.data
Interface CategoryDataset

All Superinterfaces:
Dataset, SeriesDataset
All Known Subinterfaces:
IntervalCategoryDataset, MultiIntervalCategoryDataset
All Known Implementing Classes:
DefaultCategoryDataset, DefaultIntervalCategoryDataset, GanttSeriesCollection, JdbcCategoryDataset

public interface CategoryDataset
extends SeriesDataset

The interface for a dataset with one or more series, and values associated with "categories".

The categories are represented by any Java object, with the category label being provided by the toString() method.

The JFreeChart class library uses this interface to obtain data for bar charts and line charts.


Method Summary
 java.util.List getCategories()
          Returns a list of the categories in the dataset.
 int getCategoryCount()
          Returns the number of categories in the dataset.
 java.lang.Number getValue(int series, java.lang.Object category)
          Returns the value for a series and category.
 
Methods inherited from interface com.jrefinery.data.SeriesDataset
getSeriesCount, getSeriesName
 
Methods inherited from interface com.jrefinery.data.Dataset
addChangeListener, removeChangeListener
 

Method Detail

getCategoryCount

int getCategoryCount()
Returns the number of categories in the dataset.

Returns:
The category count.

getCategories

java.util.List getCategories()
Returns a list of the categories in the dataset.

Returns:
The category list.

getValue

java.lang.Number getValue(int series,
                          java.lang.Object category)
Returns the value for a series and category.

Parameters:
series - The series (zero-based index).
category - The category.


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.