public class RangeCategorySeries

  1. Object
  2. CategorySeries
  3. 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

Constructor details

RangeCategorySeries

public RangeCategorySeries(String title)
Builds a new category series.

Parameters

title String
the series title

Method details

add

public synchronized void add(double minValue, double maxValue)
Adds new values to the series

Parameters

minValue double
the new minimum value
maxValue double
the new maximum value

add

public synchronized void add(String category, double minValue, double maxValue)
Adds new values to the series.

Parameters

category String
the category
minValue double
the new minimum value
maxValue double
the new maximum value

remove

public synchronized void remove(int index)
Removes existing values from the series.

Parameters

index int
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

index int
the index

Returns

the minimum value at the index

getMaximumValue

public double getMaximumValue(int index)
Returns the maximum value at the specified index.

Parameters

index int
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