com.jrefinery.data
Interface CategoryDataset
- All Superinterfaces:
- Dataset, SeriesDataset
- All Known Subinterfaces:
- IntervalCategoryDataset, StatisticalCategoryDataset
- All Known Implementing Classes:
- DefaultCategoryDataset, 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.
- Author:
- DG
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. |
getCategoryCount
public int getCategoryCount()
- Returns the number of categories in the dataset.
- Returns:
- the category count.
getCategories
public java.util.List getCategories()
- Returns a list of the categories in the dataset.
- Returns:
- the category list.
getValue
public 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.- Returns:
- the value for a series and category.