public class SimpleCategoryModel extends AbstractChartModel implements CategoryModel
CategoryModel
.
A Category model is an N series of (category, value) data objects.CategoryModel
,
Chart
,
Serialized Form_listeners
Constructor and Description |
---|
SimpleCategoryModel() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clear the model.
|
java.lang.Object |
clone() |
java.util.Collection<java.lang.Comparable<?>> |
getCategories()
Get categories of a specified series as a collection.
|
java.lang.Comparable<?> |
getCategory(int index)
Get a category of the specified index;
|
java.util.Collection<java.util.List<java.lang.Comparable<?>>> |
getKeys()
Get (series, category) pairs of this chart data model.
|
java.util.Collection<java.lang.Comparable<?>> |
getSeries()
Get all series as a collection.
|
java.lang.Comparable<?> |
getSeries(int index)
Get a series of the specified index;
|
java.lang.Number |
getValue(java.lang.Comparable<?> series,
java.lang.Comparable<?> category)
Get value of the specified series and category.
|
void |
removeValue(java.lang.Comparable<?> series,
java.lang.Comparable<?> category)
remove the value of the specified series and category.
|
void |
setValue(java.lang.Comparable<?> series,
java.lang.Comparable<?> category,
java.lang.Number value)
add or update the value of a specified series and category.
|
addChartDataListener, fireEvent, fireEvent, removeChartDataListener
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChartDataListener, removeChartDataListener
public java.lang.Comparable<?> getSeries(int index)
CategoryModel
getSeries
in interface CategoryModel
public java.lang.Comparable<?> getCategory(int index)
CategoryModel
getCategory
in interface CategoryModel
public java.util.Collection<java.lang.Comparable<?>> getSeries()
CategoryModel
getSeries
in interface CategoryModel
public java.util.Collection<java.lang.Comparable<?>> getCategories()
CategoryModel
getCategories
in interface CategoryModel
public java.util.Collection<java.util.List<java.lang.Comparable<?>>> getKeys()
CategoryModel
CategoryModel.setValue(java.lang.Comparable<?>, java.lang.Comparable<?>, java.lang.Number)
is
called.getKeys
in interface CategoryModel
public java.lang.Number getValue(java.lang.Comparable<?> series, java.lang.Comparable<?> category)
CategoryModel
getValue
in interface CategoryModel
series
- the seriescategory
- the category.public void setValue(java.lang.Comparable<?> series, java.lang.Comparable<?> category, java.lang.Number value)
CategoryModel
setValue
in interface CategoryModel
series
- the seriescategory
- the category.value
- the valuepublic void removeValue(java.lang.Comparable<?> series, java.lang.Comparable<?> category)
CategoryModel
removeValue
in interface CategoryModel
series
- the seriescategory
- the category.public void clear()
CategoryModel
clear
in interface CategoryModel
public java.lang.Object clone()
clone
in class AbstractChartModel
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.