Package org.zkoss.chart.model
Interface SingleValueCategoryModel
-
- All Superinterfaces:
ChartsModel
- All Known Subinterfaces:
LowModel,PieModel,WordCloudModel
- All Known Implementing Classes:
DefaultLowModel,DefaultPieModel,DefaultSingleValueCategoryModel,DefaultWordCloudModel
public interface SingleValueCategoryModel extends ChartsModel
A single value category chart data model.- Author:
- jumperchen
- See Also:
Charts
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()clear the model.Collection<Comparable<?>>getCategories()Get categories as a collection.Comparable<?>getCategory(int index)Get category of the specified index (0 based).NumbergetValue(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.chart.model.ChartsModel
addChartsDataListener, removeChartsDataListener
-
-
-
-
Method Detail
-
getCategory
Comparable<?> getCategory(int index)
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
Number getValue(Comparable<?> category)
Get value of the specified category.- Parameters:
category- the pie category.
-
setValue
void setValue(Comparable<?> category, Number value)
add or update the value of a specified category.- Parameters:
category- the pie category.value- the pie value.
-
removeValue
void removeValue(Comparable<?> category)
remove the value of the specified category.- Parameters:
category- the pie category.
-
clear
void clear()
clear the model.
-
-