org.zkoss.zul
Interface SingleValueCategoryModel

All Superinterfaces:
ChartModel
All Known Subinterfaces:
PieModel
All Known Implementing Classes:
SimplePieModel, SimpleSingleValueCategoryModel

public interface SingleValueCategoryModel
extends ChartModel

A Pie chart data model.

Author:
henrichen
See Also:
Chart, SimpleSingleValueCategoryModel

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 interface org.zkoss.zul.ChartModel
addChartDataListener, removeChartDataListener
 

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.



Copyright © 2014. All rights reserved.