com.jrefinery.data
Interface PieDataset

All Superinterfaces:
Dataset
All Known Implementing Classes:
DefaultPieDataset

public interface PieDataset
extends Dataset

The interface for a general-purpose dataset where values are associated with categories.

Author:
DG

Method Summary
 java.util.List getCategories()
          Returns the categories in the dataset.
 java.lang.Number getValue(java.lang.Object category)
          Returns the value for a category.
 
Methods inherited from interface com.jrefinery.data.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
 

Method Detail

getCategories

public java.util.List getCategories()
Returns the categories in the dataset.
Returns:
the categories.

getValue

public java.lang.Number getValue(java.lang.Object category)
Returns the value for a category.

This method should return null if the category is not found.

Parameters:
category - the category.
Returns:
the value.