|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zul.AbstractChartModel
org.zkoss.zul.SimpleSingleValueCategoryModel
public class SimpleSingleValueCategoryModel
A Pie chart data model implementation of SingleValueCategoryModel.
SimpleSingleValueCategoryModel used by PieChart and FunnelChart is a series of (Category, singleValue) data objects.
SingleValueCategoryModel,
Chart,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.zkoss.zul.AbstractChartModel |
|---|
_listeners |
| Constructor Summary | |
|---|---|
SimpleSingleValueCategoryModel()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.zkoss.zul.AbstractChartModel |
|---|
addChartDataListener, fireEvent, fireEvent, removeChartDataListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.zkoss.zul.ChartModel |
|---|
addChartDataListener, removeChartDataListener |
| Constructor Detail |
|---|
public SimpleSingleValueCategoryModel()
| Method Detail |
|---|
public Comparable<?> getCategory(int index)
SingleValueCategoryModel
getCategory in interface SingleValueCategoryModelindex - the index of the category.public Collection<Comparable<?>> getCategories()
SingleValueCategoryModel
getCategories in interface SingleValueCategoryModelpublic Number getValue(Comparable<?> category)
SingleValueCategoryModel
getValue in interface SingleValueCategoryModelcategory - the pie category.
public void setValue(Comparable<?> category,
Number value)
SingleValueCategoryModel
setValue in interface SingleValueCategoryModelcategory - the pie category.value - the pie value.public void removeValue(Comparable<?> category)
SingleValueCategoryModel
removeValue in interface SingleValueCategoryModelcategory - the pie category.public void clear()
SingleValueCategoryModel
clear in interface SingleValueCategoryModelpublic Object clone()
clone in class AbstractChartModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||