org.jfree.data.xy
Class XIntervalSeries
- Cloneable, Serializable
A list of (x, x-low, x-high, y) data items.
XIntervalSeries(Comparable key) - Creates a new empty series.
|
XIntervalSeries(Comparable key, boolean autoSort, boolean allowDuplicateXValues) - Constructs a new xy-series that contains no data.
|
void | add(double x, double xLow, double xHigh, double y) - Adds a data item to the series.
|
ComparableObjectItem | getDataItem(int index) - Returns the data item at the specified index.
|
Number | getX(int index) - Returns the x-value for the specified item.
|
double | getYValue(int index) - Returns the y-value for the specified item.
|
add , add , add , clear , delete , equals , getAllowDuplicateXValues , getAutoSort , getDataItem , getItemCount , getMaximumItemCount , hashCode , indexOf , remove , remove , setMaximumItemCount , update , updateByIndex |
addChangeListener , addPropertyChangeListener , clone , equals , firePropertyChange , fireSeriesChanged , getDescription , getKey , getNotify , hashCode , notifyListeners , removeChangeListener , removePropertyChangeListener , setDescription , setKey , setNotify |
XIntervalSeries
public XIntervalSeries(Comparable key)
Creates a new empty series. By default, items added to the series will
be sorted into ascending order by x-value, and duplicate x-values will
be allowed (these defaults can be modified with another constructor.
key
- the series key (null
not permitted).
XIntervalSeries
public XIntervalSeries(Comparable key,
boolean autoSort,
boolean allowDuplicateXValues)
Constructs a new xy-series that contains no data. You can specify
whether or not duplicate x-values are allowed for the series.
key
- the series key (null
not permitted).autoSort
- a flag that controls whether or not the items in the
series are sorted.allowDuplicateXValues
- a flag that controls whether duplicate
x-values are allowed.
add
public void add(double x,
double xLow,
double xHigh,
double y)
Adds a data item to the series.
x
- the x-value.xLow
- the lower bound of the y-interval.xHigh
- the upper bound of the y-interval.y
- the y-value.
getX
public Number getX(int index)
Returns the x-value for the specified item.
- The x-value (never
null
).
getYValue
public double getYValue(int index)
Returns the y-value for the specified item.