public interface CategoryModel extends ChartModel
Chart
,
SimpleCategoryModel
Modifier and Type | Method and Description |
---|---|
void |
clear()
clear the model.
|
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, removeChartDataListener
Comparable<?> getSeries(int index)
Collection<Comparable<?>> getSeries()
Comparable<?> getCategory(int index)
Collection<Comparable<?>> getCategories()
Collection<List<Comparable<?>>> getKeys()
setValue(java.lang.Comparable<?>, java.lang.Comparable<?>, java.lang.Number)
is
called.Number getValue(Comparable<?> series, Comparable<?> category)
series
- the seriescategory
- the category.void setValue(Comparable<?> series, Comparable<?> category, Number value)
series
- the seriescategory
- the category.value
- the valuevoid removeValue(Comparable<?> series, Comparable<?> category)
series
- the seriescategory
- the category.void clear()
Copyright © 2020. All rights reserved.