public class SimpleCategoryModel extends AbstractChartModel implements CategoryModel
CategoryModel.
A Category model is an N series of (category, value) data objects.CategoryModel,
Chart,
Serialized Form_listeners| Constructor and Description |
|---|
SimpleCategoryModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear the model.
|
Object |
clone() |
Collection<Comparable<?>> |
getCategories()
Get categories of a specified series as a collection.
|
Comparable<?> |
getCategory(int index)
Get a category of the specified index;
|
Collection<List<Comparable<?>>> |
getKeys()
Get (series, category) pairs of this chart data model.
|
Collection<Comparable<?>> |
getSeries()
Get all series as a collection.
|
Comparable<?> |
getSeries(int index)
Get a series of the specified index;
|
Number |
getValue(Comparable<?> series,
Comparable<?> category)
Get value of the specified series and category.
|
void |
removeValue(Comparable<?> series,
Comparable<?> category)
remove the value of the specified series and category.
|
void |
setValue(Comparable<?> series,
Comparable<?> category,
Number value)
add or update the value of a specified series and category.
|
addChartDataListener, fireEvent, fireEvent, removeChartDataListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChartDataListener, removeChartDataListenerpublic Comparable<?> getSeries(int index)
CategoryModelgetSeries in interface CategoryModelpublic Comparable<?> getCategory(int index)
CategoryModelgetCategory in interface CategoryModelpublic Collection<Comparable<?>> getSeries()
CategoryModelgetSeries in interface CategoryModelpublic Collection<Comparable<?>> getCategories()
CategoryModelgetCategories in interface CategoryModelpublic Collection<List<Comparable<?>>> getKeys()
CategoryModelCategoryModel.setValue(java.lang.Comparable<?>, java.lang.Comparable<?>, java.lang.Number) is
called.getKeys in interface CategoryModelpublic Number getValue(Comparable<?> series, Comparable<?> category)
CategoryModelgetValue in interface CategoryModelseries - the seriescategory - the category.public void setValue(Comparable<?> series, Comparable<?> category, Number value)
CategoryModelsetValue in interface CategoryModelseries - the seriescategory - the category.value - the valuepublic void removeValue(Comparable<?> series, Comparable<?> category)
CategoryModelremoveValue in interface CategoryModelseries - the seriescategory - the category.public void clear()
CategoryModelclear in interface CategoryModelpublic Object clone()
clone in class AbstractChartModelCopyright © 2015. All rights reserved.