public class RangeCategorySeries extends CategorySeries
Constructor and Description |
---|
RangeCategorySeries(String title)
Builds a new category series.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double minValue,
double maxValue)
Adds new values to the series
|
void |
add(String category,
double minValue,
double maxValue)
Adds new values to the series.
|
void |
clear()
Removes all the existing values from the series.
|
double |
getMaximumValue(int index)
Returns the maximum value at the specified index.
|
double |
getMinimumValue(int index)
Returns the minimum value at the specified index.
|
void |
remove(int index)
Removes existing values from the series.
|
XYSeries |
toXYSeries()
Transforms the range category series to an XY series.
|
add, add, getCategory, getItemCount, getTitle, getValue, set
public RangeCategorySeries(String title)
title
- the series titlepublic void add(double minValue, double maxValue)
minValue
- the new minimum valuemaxValue
- the new maximum valuepublic void add(String category, double minValue, double maxValue)
category
- the categoryminValue
- the new minimum valuemaxValue
- the new maximum valuepublic void remove(int index)
remove
in class CategorySeries
index
- the index in the series of the values to removepublic void clear()
clear
in class CategorySeries
public double getMinimumValue(int index)
index
- the indexpublic double getMaximumValue(int index)
index
- the indexpublic XYSeries toXYSeries()
toXYSeries
in class CategorySeries