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 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 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.
-
-