Package org.zkoss.zul
Interface SingleValueCategoryModel
- All Superinterfaces:
ChartModel
- All Known Subinterfaces:
PieModel
- All Known Implementing Classes:
SimplePieModel,SimpleSingleValueCategoryModel
A Pie chart data model.
- Author:
- henrichen
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clear the model.Collection<Comparable<?>>Get categories as a collection.Comparable<?>getCategory(int index) Get category of the specified index (0 based).getValue(Comparable<?> category) Get value of the specified category.voidremoveValue(Comparable<?> category) remove the value of the specified category.voidsetValue(Comparable<?> category, Number value) add or update the value of a specified category.Methods inherited from interface org.zkoss.zul.ChartModel
addChartDataListener, removeChartDataListener
-
Method Details
-
getCategory
Get category of the specified index (0 based).- Parameters:
index- the index of the category.
-
getCategories
Collection<Comparable<?>> getCategories()Get categories as a collection. -
getValue
Get value of the specified category.- Parameters:
category- the pie category.
-
setValue
add or update the value of a specified category.- Parameters:
category- the pie category.value- the pie value.
-
removeValue
remove the value of the specified category.- Parameters:
category- the pie category.
-
clear
void clear()clear the model.
-