public interface SingleValueCategoryModel extends ChartModel
Chart,
SimpleSingleValueCategoryModel| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear the model.
|
Collection<Comparable<?>> |
getCategories()
Get categories as a collection.
|
Comparable<?> |
getCategory(int index)
Get category of the specified index (0 based).
|
Number |
getValue(Comparable<?> category)
Get value of the specified category.
|
void |
removeValue(Comparable<?> category)
remove the value of the specified category.
|
void |
setValue(Comparable<?> category,
Number value)
add or update the value of a specified category.
|
addChartDataListener, removeChartDataListenerComparable<?> getCategory(int index)
index - the index of the category.Collection<Comparable<?>> getCategories()
Number getValue(Comparable<?> category)
category - the pie category.void setValue(Comparable<?> category, Number value)
category - the pie category.value - the pie value.void removeValue(Comparable<?> category)
category - the pie category.void clear()
Copyright © 2015. All rights reserved.