public class XYIntervalSeries extends ComparableObjectSeries
XYIntervalSeriesCollection
,
Serialized Formdata
Constructor and Description |
---|
XYIntervalSeries(java.lang.Comparable key)
Creates a new empty series.
|
XYIntervalSeries(java.lang.Comparable key,
boolean autoSort,
boolean allowDuplicateXValues)
Constructs a new xy-series that contains no data.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double x,
double xLow,
double xHigh,
double y,
double yLow,
double yHigh)
Adds a data item to the series and sends a
SeriesChangeEvent to
all registered listeners. |
void |
add(XYIntervalDataItem item,
boolean notify)
Adds a data item to the series and, if requested, sends a
SeriesChangeEvent to all registered listeners. |
ComparableObjectItem |
getDataItem(int index)
Returns the data item at the specified index.
|
java.lang.Number |
getX(int index)
Returns the x-value for the specified item.
|
double |
getXHighValue(int index)
Returns the upper bound of the x-interval for the specified item in the
series.
|
double |
getXLowValue(int index)
Returns the lower bound of the x-interval for the specified item in the
series.
|
double |
getYHighValue(int index)
Returns the upper bound of the y-interval for the specified item in the
series.
|
double |
getYLowValue(int index)
Returns the lower bound of the Y-interval for the specified item in the
series.
|
double |
getYValue(int index)
Returns the y-value for the specified item.
|
add, add, add, clear, delete, equals, getAllowDuplicateXValues, getAutoSort, getItemCount, getMaximumItemCount, hashCode, indexOf, remove, remove, setMaximumItemCount, update, updateByIndex
addChangeListener, addPropertyChangeListener, addVetoableChangeListener, clone, firePropertyChange, fireSeriesChanged, fireVetoableChange, getDescription, getKey, getNotify, isEmpty, notifyListeners, removeChangeListener, removePropertyChangeListener, removeVetoableChangeListener, setDescription, setKey, setNotify
public XYIntervalSeries(java.lang.Comparable key)
key
- the series key (null
not permitted).public XYIntervalSeries(java.lang.Comparable key, boolean autoSort, boolean allowDuplicateXValues)
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.public void add(double x, double xLow, double xHigh, double y, double yLow, double yHigh)
SeriesChangeEvent
to
all registered listeners.x
- the x-value.xLow
- the lower bound of the x-interval.xHigh
- the upper bound of the x-interval.y
- the y-value.yLow
- the lower bound of the y-interval.yHigh
- the upper bound of the y-interval.public void add(XYIntervalDataItem item, boolean notify)
SeriesChangeEvent
to all registered listeners.item
- the data item (null
not permitted).notify
- notify listeners?public java.lang.Number getX(int index)
index
- the item index.null
).public double getXLowValue(int index)
index
- the item index.public double getXHighValue(int index)
index
- the item index.public double getYValue(int index)
index
- the item index.public double getYLowValue(int index)
index
- the item index.public double getYHighValue(int index)
index
- the item index.public ComparableObjectItem getDataItem(int index)
getDataItem
in class ComparableObjectSeries
index
- the item index.