|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.achartengine.model.CategorySeries
public class CategorySeries
A series for the category charts like the pie ones.
| Constructor Summary | |
|---|---|
CategorySeries(java.lang.String title)
Builds a new category series. |
|
| Method Summary | |
|---|---|
void |
add(double value)
Adds a new value to the series |
void |
add(java.lang.String category,
double value)
Adds a new value to the series. |
void |
clear()
Removes all the existing values from the series. |
java.lang.String |
getCategory(int index)
Returns the category name at the specified index. |
int |
getItemCount()
Returns the series item count. |
java.lang.String |
getTitle()
Returns the series title. |
double |
getValue(int index)
Returns the value at the specified index. |
void |
remove(int index)
Removes an existing value from the series. |
void |
set(int index,
java.lang.String category,
double value)
Replaces the value at the specific index in the series. |
XYSeries |
toXYSeries()
Transforms the category series to an XY series. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CategorySeries(java.lang.String title)
title - the series title| Method Detail |
|---|
public java.lang.String getTitle()
public void add(double value)
value - the new value
public void add(java.lang.String category,
double value)
category - the categoryvalue - the new value
public void set(int index,
java.lang.String category,
double value)
index - the index in the seriescategory - the categoryvalue - the new valuepublic void remove(int index)
index - the index in the series of the value to removepublic void clear()
public double getValue(int index)
index - the index
public java.lang.String getCategory(int index)
index - the index
public int getItemCount()
public XYSeries toXYSeries()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||