public class SimpleSingleValueCategoryModel extends AbstractChartModel implements SingleValueCategoryModel
SingleValueCategoryModel.
SimpleSingleValueCategoryModel used by PieChart and FunnelChart is a series of (Category, singleValue) data objects.SingleValueCategoryModel,
Chart,
Serialized Form_listeners| Constructor and Description |
|---|
SimpleSingleValueCategoryModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear the model.
|
Object |
clone() |
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, fireEvent, fireEvent, removeChartDataListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChartDataListener, removeChartDataListenerpublic Comparable<?> getCategory(int index)
SingleValueCategoryModelgetCategory in interface SingleValueCategoryModelindex - the index of the category.public Collection<Comparable<?>> getCategories()
SingleValueCategoryModelgetCategories in interface SingleValueCategoryModelpublic Number getValue(Comparable<?> category)
SingleValueCategoryModelgetValue in interface SingleValueCategoryModelcategory - the pie category.public void setValue(Comparable<?> category, Number value)
SingleValueCategoryModelsetValue in interface SingleValueCategoryModelcategory - the pie category.value - the pie value.public void removeValue(Comparable<?> category)
SingleValueCategoryModelremoveValue in interface SingleValueCategoryModelcategory - the pie category.public void clear()
SingleValueCategoryModelclear in interface SingleValueCategoryModelpublic Object clone()
clone in class AbstractChartModelCopyright © 2015. All rights reserved.