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.
|
java.lang.Object |
clone() |
java.util.Collection<java.lang.Comparable<?>> |
getCategories()
Get categories as a collection.
|
java.lang.Comparable<?> |
getCategory(int index)
Get category of the specified index (0 based).
|
java.lang.Number |
getValue(java.lang.Comparable<?> category)
Get value of the specified category.
|
void |
removeValue(java.lang.Comparable<?> category)
remove the value of the specified category.
|
void |
setValue(java.lang.Comparable<?> category,
java.lang.Number value)
add or update the value of a specified category.
|
addChartDataListener, fireEvent, fireEvent, removeChartDataListener
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChartDataListener, removeChartDataListener
public java.lang.Comparable<?> getCategory(int index)
SingleValueCategoryModel
getCategory
in interface SingleValueCategoryModel
index
- the index of the category.public java.util.Collection<java.lang.Comparable<?>> getCategories()
SingleValueCategoryModel
getCategories
in interface SingleValueCategoryModel
public java.lang.Number getValue(java.lang.Comparable<?> category)
SingleValueCategoryModel
getValue
in interface SingleValueCategoryModel
category
- the pie category.public void setValue(java.lang.Comparable<?> category, java.lang.Number value)
SingleValueCategoryModel
setValue
in interface SingleValueCategoryModel
category
- the pie category.value
- the pie value.public void removeValue(java.lang.Comparable<?> category)
SingleValueCategoryModel
removeValue
in interface SingleValueCategoryModel
category
- the pie category.public void clear()
SingleValueCategoryModel
clear
in interface SingleValueCategoryModel
public java.lang.Object clone()
clone
in class AbstractChartModel
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.