|
||||||||||
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.SimplePieModel
public class SimplePieModel
A Pie chart data model implementation of PieModel
.
Piechart model is an one series of (Category, value) data objects.
PieModel
,
Chart
,
Serialized FormConstructor Summary | |
---|---|
SimplePieModel()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.zkoss.zul.AbstractChartModel |
---|
addChartDataListener, fireEvent, removeChartDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.zkoss.zul.ChartModel |
---|
addChartDataListener, removeChartDataListener |
Constructor Detail |
---|
public SimplePieModel()
Method Detail |
---|
public Comparable<?> getCategory(int index)
PieModel
getCategory
in interface PieModel
index
- the index of the category.public Collection<Comparable<?>> getCategories()
PieModel
getCategories
in interface PieModel
public Number getValue(Comparable category)
PieModel
getValue
in interface PieModel
category
- the pie category.public void setValue(Comparable<?> category, Number value)
PieModel
setValue
in interface PieModel
category
- the pie category.value
- the pie value.public void removeValue(Comparable<?> category)
PieModel
removeValue
in interface PieModel
category
- the pie category.public void clear()
PieModel
clear
in interface PieModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |