public class XYIntervalSeriesCollection extends AbstractIntervalXYDataset implements IntervalXYDataset, org.jfree.util.PublicCloneable, java.io.Serializable
XYIntervalSeries
objects.XYIntervalSeries
,
Serialized FormConstructor and Description |
---|
XYIntervalSeriesCollection()
Creates a new instance of
XIntervalSeriesCollection . |
Modifier and Type | Method and Description |
---|---|
void |
addSeries(XYIntervalSeries series)
Adds a series to the collection and sends a
DatasetChangeEvent
to all registered listeners. |
java.lang.Object |
clone()
Returns a clone of this dataset.
|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
java.lang.Number |
getEndX(int series,
int item)
Returns the end x-value for an item within a series.
|
double |
getEndXValue(int series,
int item)
Returns the end x-value (as a double primitive) for an item within a
series.
|
java.lang.Number |
getEndY(int series,
int item)
Returns the end y-value for an item within a series.
|
double |
getEndYValue(int series,
int item)
Returns the end y-value (as a double primitive) for an item within a
series.
|
int |
getItemCount(int series)
Returns the number of items in the specified series.
|
XYIntervalSeries |
getSeries(int series)
Returns a series from the collection.
|
int |
getSeriesCount()
Returns the number of series in the collection.
|
java.lang.Comparable |
getSeriesKey(int series)
Returns the key for a series.
|
java.lang.Number |
getStartX(int series,
int item)
Returns the start x-value for an item within a series.
|
double |
getStartXValue(int series,
int item)
Returns the start x-value (as a double primitive) for an item within a
series.
|
java.lang.Number |
getStartY(int series,
int item)
Returns the start y-value for an item within a series.
|
double |
getStartYValue(int series,
int item)
Returns the start y-value (as a double primitive) for an item within a
series.
|
java.lang.Number |
getX(int series,
int item)
Returns the x-value for an item within a series.
|
java.lang.Number |
getY(int series,
int item)
Returns the y-value for an item within a series.
|
double |
getYValue(int series,
int item)
Returns the y-value (as a double primitive) for an item within a
series.
|
void |
removeAllSeries()
Removes all the series from the collection and sends a
DatasetChangeEvent to all registered listeners. |
void |
removeSeries(int series)
Removes a series from the collection and sends a
DatasetChangeEvent to all registered listeners. |
void |
removeSeries(XYIntervalSeries series)
Removes a series from the collection and sends a
DatasetChangeEvent to all registered listeners. |
getDomainOrder, getXValue
indexOf, seriesChanged
addChangeListener, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDomainOrder, getXValue
indexOf
addChangeListener, getGroup, removeChangeListener, setGroup
public XYIntervalSeriesCollection()
XIntervalSeriesCollection
.public void addSeries(XYIntervalSeries series)
DatasetChangeEvent
to all registered listeners.series
- the series (null
not permitted).public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public XYIntervalSeries getSeries(int series)
series
- the series index (zero-based).java.lang.IllegalArgumentException
- if series
is not in the
range 0
to getSeriesCount() - 1
.public java.lang.Comparable getSeriesKey(int series)
getSeriesKey
in interface SeriesDataset
getSeriesKey
in class AbstractSeriesDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).java.lang.IllegalArgumentException
- if series
is not in the
specified range.public int getItemCount(int series)
getItemCount
in interface XYDataset
series
- the series (zero-based index).java.lang.IllegalArgumentException
- if series
is not in the
range 0
to getSeriesCount() - 1
.public java.lang.Number getX(int series, int item)
public double getStartXValue(int series, int item)
getStartXValue
in interface IntervalXYDataset
getStartXValue
in class AbstractIntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).IntervalXYDataset.getStartX(int, int)
public double getEndXValue(int series, int item)
getEndXValue
in interface IntervalXYDataset
getEndXValue
in class AbstractIntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).IntervalXYDataset.getEndX(int, int)
public double getYValue(int series, int item)
getYValue
in interface XYDataset
getYValue
in class AbstractXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).public double getStartYValue(int series, int item)
getStartYValue
in interface IntervalXYDataset
getStartYValue
in class AbstractIntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).IntervalXYDataset.getStartY(int, int)
public double getEndYValue(int series, int item)
getEndYValue
in interface IntervalXYDataset
getEndYValue
in class AbstractIntervalXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).IntervalXYDataset.getEndY(int, int)
public java.lang.Number getY(int series, int item)
public java.lang.Number getStartX(int series, int item)
getStartX
in interface IntervalXYDataset
series
- the series index.item
- the item index.public java.lang.Number getEndX(int series, int item)
getEndX
in interface IntervalXYDataset
series
- the series index.item
- the item index.public java.lang.Number getStartY(int series, int item)
getY(int, int)
.getStartY
in interface IntervalXYDataset
series
- the series index.item
- the item index.public java.lang.Number getEndY(int series, int item)
getY(int, int)
.getEndY
in interface IntervalXYDataset
series
- the series index.item
- the item index.public void removeSeries(int series)
DatasetChangeEvent
to all registered listeners.series
- the series index (zero-based).public void removeSeries(XYIntervalSeries series)
DatasetChangeEvent
to all registered listeners.series
- the series (null
not permitted).public void removeAllSeries()
DatasetChangeEvent
to all registered listeners.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractDataset
java.lang.CloneNotSupportedException
- if there is a problem cloning.