|
||||||||||
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.SimpleCategoryModel
public class SimpleCategoryModel
A Category data model implementation of CategoryModel
.
A Category model is an N series of (category, value) data objects.
CategoryModel
,
Chart
,
Serialized FormConstructor Summary | |
---|---|
SimpleCategoryModel()
|
Method Summary | |
---|---|
void |
clear()
clear the model. |
Collection<Comparable<?>> |
getCategories()
Get categories of a specified series as a collection. |
Comparable<?> |
getCategory(int index)
Get a category of the specified index; |
Collection<List<Comparable<?>>> |
getKeys()
Get (series, category) pairs of this chart data model. |
Collection<Comparable<?>> |
getSeries()
Get all series as a collection. |
Comparable<?> |
getSeries(int index)
Get a series of the specified index; |
Number |
getValue(Comparable<?> series,
Comparable<?> category)
Get value of the specified series and category. |
void |
removeValue(Comparable<?> series,
Comparable<?> category)
remove the value of the specified series and category. |
void |
setValue(Comparable<?> series,
Comparable<?> category,
Number value)
add or update the value of a specified series and 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 SimpleCategoryModel()
Method Detail |
---|
public Comparable<?> getSeries(int index)
CategoryModel
getSeries
in interface CategoryModel
public Comparable<?> getCategory(int index)
CategoryModel
getCategory
in interface CategoryModel
public Collection<Comparable<?>> getSeries()
CategoryModel
getSeries
in interface CategoryModel
public Collection<Comparable<?>> getCategories()
CategoryModel
getCategories
in interface CategoryModel
public Collection<List<Comparable<?>>> getKeys()
CategoryModel
CategoryModel.setValue(java.lang.Comparable>, java.lang.Comparable>, java.lang.Number)
is
called.
getKeys
in interface CategoryModel
public Number getValue(Comparable<?> series, Comparable<?> category)
CategoryModel
getValue
in interface CategoryModel
series
- the seriescategory
- the category.public void setValue(Comparable<?> series, Comparable<?> category, Number value)
CategoryModel
setValue
in interface CategoryModel
series
- the seriescategory
- the category.value
- the valuepublic void removeValue(Comparable<?> series, Comparable<?> category)
CategoryModel
removeValue
in interface CategoryModel
series
- the seriescategory
- the category.public void clear()
CategoryModel
clear
in interface CategoryModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |