public class MultipleCategorySeries extends Object
Constructor and Description |
---|
MultipleCategorySeries(String title)
Builds a new category series.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String[] titles,
double[] values)
Adds a new value to the series
|
void |
add(String category,
String[] titles,
double[] values)
Adds a new value to the series.
|
void |
clear()
Removes all the existing values from the series.
|
int |
getCategoriesCount()
Returns the categories count.
|
String |
getCategory(int index)
Returns the category name at the specified index.
|
int |
getItemCount(int index)
Returns the series item count.
|
String[] |
getTitles(int index)
Returns the series titles.
|
double[] |
getValues(int index)
Returns the values at the specified index.
|
void |
remove(int index)
Removes an existing value from the series.
|
XYSeries |
toXYSeries()
Transforms the category series to an XY series.
|
public MultipleCategorySeries(String title)
title
- the series titlepublic void add(String[] titles, double[] values)
titles
- the titles to be used as labelsvalues
- the new valuepublic void add(String category, String[] titles, double[] values)
category
- the category nametitles
- the titles to be used as labelsvalues
- the new valuepublic void remove(int index)
index
- the index in the series of the value to removepublic void clear()
public double[] getValues(int index)
index
- the indexpublic String getCategory(int index)
index
- the indexpublic int getCategoriesCount()
public int getItemCount(int index)
index
- the indexpublic String[] getTitles(int index)
index
- the indexpublic XYSeries toXYSeries()