public class ChartSeriesCollection
extends java.lang.Object
implements java.lang.Iterable
ChartSeries.
To learn more, visit the Working with Charts documentation article.
| Modifier and Type | Method and Description |
|---|---|
ChartSeries |
add(java.lang.String seriesName,
java.util.Date[] dates,
double[] values)
Adds new
ChartSeries to this collection. |
ChartSeries |
add(java.lang.String seriesName,
double[] xValues,
double[] yValues)
Adds new
ChartSeries to this collection. |
ChartSeries |
add(java.lang.String seriesName,
double[] xValues,
double[] yValues,
double[] bubbleSizes)
Adds new
ChartSeries to this collection. |
ChartSeries |
add(java.lang.String seriesName,
java.lang.String[] categories,
double[] values)
Adds new
ChartSeries to this collection. |
void |
clear()
Removes all
ChartSeries from this collection. |
ChartSeries |
get(int index)
Returns a
ChartSeries at the specified index. |
int |
getCount()
Returns the number of
ChartSeries in this collection. |
java.util.Iterator |
iterator()
Returns an enumerator object.
|
void |
removeAt(int index)
Removes a
ChartSeries at the specified index. |
public ChartSeries get(int index)
ChartSeries at the specified index.
The index is zero-based.
Negative indexes are allowed and indicate access from the back of the collection. For example -1 means the last item, -2 means the second before last and so on.
If index is greater than or equal to the number of items in the list, this returns a null reference.
If index is negative and its absolute value is greater than the number of items in the list, this returns a null reference.
index - An index into the collection.ChartSeries at the specified index.public java.util.Iterator iterator()
iterator in interface java.lang.Iterablepublic void removeAt(int index)
ChartSeries at the specified index.index - The zero-based index of the ChartSeries to remove.public void clear()
ChartSeries from this collection.public ChartSeries add(java.lang.String seriesName, java.lang.String[] categories, double[] values)
ChartSeries to this collection. Use this method to add series to any type of Bar, Column, Line and Surface charts.ChartSeries object.public ChartSeries add(java.lang.String seriesName, double[] xValues, double[] yValues)
ChartSeries to this collection. Use this method to add series to any type of Scatter charts.ChartSeries object.public ChartSeries add(java.lang.String seriesName, java.util.Date[] dates, double[] values)
ChartSeries to this collection. Use this method to add series to any type of Area, Radar and Stock charts.public ChartSeries add(java.lang.String seriesName, double[] xValues, double[] yValues, double[] bubbleSizes)
ChartSeries to this collection. Use this method to add series to any type of Bubble charts.ChartSeries object.public int getCount()
ChartSeries in this collection.ChartSeries in this collection.