public class RangeCategorySeries
- Object
- CategorySeries
- RangeCategorySeries
A series for the range category charts like the range bar.
Constructors
public RangeCategorySeries(String title) | Builds a new category series. |
Methods
public synchronized void add(double minValue, double maxValue) | Adds new values to the series |
public synchronized void add(String category, double minValue, double maxValue) | Adds new values to the series. |
public synchronized void remove(int index) | Removes existing values from the series. |
public synchronized void clear() | Removes all the existing values from the series. |
public double getMinimumValue(int index) | Returns the minimum value at the specified index. |
public double getMaximumValue(int index) | Returns the maximum value at the specified index. |
public XYSeries toXYSeries() | Transforms the range category series to an XY series. |
Inherited methods
From CategorySeries
getTitle, add, add, set, getValue, getCategory, getItemCount
Constructor details
RangeCategorySeries
public RangeCategorySeries(String title)Builds a new category series.
Parameters
titleString- the series title
Method details
add
public synchronized void add(double minValue, double maxValue)Adds new values to the series
Parameters
minValuedouble- the new minimum value
maxValuedouble- the new maximum value
add
public synchronized void add(String category, double minValue, double maxValue)Adds new values to the series.
Parameters
categoryString- the category
minValuedouble- the new minimum value
maxValuedouble- the new maximum value
remove
public synchronized void remove(int index)Removes existing values from the series.
Parameters
indexint- the index in the series of the values to remove
clear
public synchronized void clear()Removes all the existing values from the series.
getMinimumValue
public double getMinimumValue(int index)Returns the minimum value at the specified index.
Parameters
indexint- the index
Returns
the minimum value at the index
getMaximumValue
public double getMaximumValue(int index)Returns the maximum value at the specified index.
Parameters
indexint- the index
Returns
the maximum value at the index
toXYSeries
public XYSeries toXYSeries()Transforms the range category series to an XY series.
Returns
the XY series