Class Overview
A list of (x, x-low, x-high, y) data items.
Summary
Public Methods |
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
|
getXHighValue(int index)
Returns the upper bound of the x-interval for the specified item.
|
double
|
getXLowValue(int index)
Returns the lower bound of the x-interval for the specified item.
|
double
|
getYValue(int index)
Returns the y-value for the specified item.
|
[Expand]
Inherited Methods |
From class
org.jfree.data.ComparableObjectSeries
void
|
add(ComparableObjectItem item, boolean notify)
Adds a data item to the series and, if requested, sends a
SeriesChangeEvent to all registered listeners.
|
void
|
add(Comparable x, Object y)
Adds new data to the series and sends a SeriesChangeEvent to
all registered listeners.
|
void
|
add(Comparable x, Object y, boolean notify)
Adds new data to the series and, if requested, sends a
SeriesChangeEvent to all registered listeners.
|
void
|
clear()
Removes all data items from the series and, unless the series is
already empty, sends a SeriesChangeEvent to all registered
listeners.
|
void
|
delete(int start, int end)
Deletes a range of items from the series and sends a
SeriesChangeEvent to all registered listeners.
|
boolean
|
equals(Object obj)
Tests this series for equality with an arbitrary object.
|
boolean
|
getAllowDuplicateXValues()
Returns a flag that controls whether duplicate x-values are allowed.
|
boolean
|
getAutoSort()
Returns the flag that controls whether the items in the series are
automatically sorted.
|
ComparableObjectItem
|
getDataItem(int index)
Return the data item with the specified index.
|
int
|
getItemCount()
Returns the number of items in the series.
|
int
|
getMaximumItemCount()
Returns the maximum number of items that will be retained in the series.
|
int
|
hashCode()
Returns a hash code.
|
int
|
indexOf(Comparable x)
Returns the index of the item with the specified x-value, or a negative
index if the series does not contain an item with that x-value.
|
ComparableObjectItem
|
remove(Comparable x)
Removes the item with the specified x-value and sends a
SeriesChangeEvent to all registered listeners.
|
ComparableObjectItem
|
remove(int index)
Removes the item at the specified index and sends a
SeriesChangeEvent to all registered listeners.
|
void
|
setMaximumItemCount(int maximum)
Sets the maximum number of items that will be retained in the series.
|
void
|
update(Comparable x, Object y)
Updates an item in the series.
|
void
|
updateByIndex(int index, Object y)
Updates the value of an item in the series and sends a
SeriesChangeEvent to all registered listeners.
|
|
From class
org.jfree.data.general.Series
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
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.
Parameters
key
| the series key (null not permitted).
|
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.
Parameters
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 Methods
public
void
add
(double x, double xLow, double xHigh, double y)
Adds a data item to the series.
Parameters
x
| the x-value. |
xLow
| the lower bound of the y-interval. |
xHigh
| the upper bound of the y-interval.
|
y
| the y-value. |
Returns the data item at the specified index.
public
Number
getX
(int index)
Returns the x-value for the specified item.
Returns
- The x-value (never
null
).
public
double
getXHighValue
(int index)
Returns the upper bound of the x-interval for the specified item.
Returns
- The upper bound of the x-interval.
public
double
getXLowValue
(int index)
Returns the lower bound of the x-interval for the specified item.
Returns
- The lower bound of the x-interval.
public
double
getYValue
(int index)
Returns the y-value for the specified item.