public class YIntervalSeriesCollection extends AbstractIntervalXYDataset implements IntervalXYDataset, org.jfree.util.PublicCloneable, java.io.Serializable
YIntervalSeries
objects.YIntervalSeries
,
Serialized FormConstructor and Description |
---|
YIntervalSeriesCollection()
Creates a new instance of
YIntervalSeriesCollection . |
Modifier and Type | Method and Description |
---|---|
void |
addSeries(YIntervalSeries series)
Adds a series to the collection and sends a
DatasetChangeEvent
to all registered listeners. |
java.lang.Object |
clone()
Returns a clone of this instance.
|
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.
|
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.
|
YIntervalSeries |
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.
|
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(YIntervalSeries series)
Removes a series from the collection and sends a
DatasetChangeEvent to all registered listeners. |
getEndXValue, getStartXValue
getDomainOrder, getXValue
indexOf, seriesChanged
addChangeListener, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndXValue, getStartXValue
getDomainOrder, getXValue
indexOf
addChangeListener, getGroup, removeChangeListener, setGroup
public YIntervalSeriesCollection()
YIntervalSeriesCollection
.public void addSeries(YIntervalSeries series)
DatasetChangeEvent
to all registered listeners.series
- the series (null
not permitted).public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public YIntervalSeries 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 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)
getX(int, int)
.getStartX
in interface IntervalXYDataset
series
- the series index.item
- the item index.public java.lang.Number getEndX(int series, int item)
getX(int, int)
.getEndX
in interface IntervalXYDataset
series
- the series index.item
- the item index.public java.lang.Number getStartY(int series, int item)
getStartY
in interface IntervalXYDataset
series
- the series index.item
- the item index.public java.lang.Number getEndY(int series, int item)
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(YIntervalSeries 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.