public class XYIntervalSeriesCollection extends AbstractIntervalXYDataset implements IntervalXYDataset, org.jfree.util.PublicCloneable, 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. |
Object |
clone()
Returns a clone of this dataset.
|
boolean |
equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
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.
|
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.
|
Comparable |
getSeriesKey(int series)
Returns the key for a series.
|
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.
|
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.
|
Number |
getX(int series,
int item)
Returns the x-value for an item within a series.
|
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, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
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).IllegalArgumentException
- if series
is not in the
range 0
to getSeriesCount() - 1
.public Comparable getSeriesKey(int series)
getSeriesKey
in interface SeriesDataset
getSeriesKey
in class AbstractSeriesDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).IllegalArgumentException
- if series
is not in the
specified range.public int getItemCount(int series)
getItemCount
in interface XYDataset
series
- the series (zero-based index).IllegalArgumentException
- if series
is not in the
range 0
to getSeriesCount() - 1
.public 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 Number getY(int series, int item)
public Number getStartX(int series, int item)
getStartX
in interface IntervalXYDataset
series
- the series index.item
- the item index.public Number getEndX(int series, int item)
getEndX
in interface IntervalXYDataset
series
- the series index.item
- the item index.public Number getStartY(int series, int item)
getY(int, int)
.getStartY
in interface IntervalXYDataset
series
- the series index.item
- the item index.public 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(Object obj)
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractDataset
CloneNotSupportedException
- if there is a problem cloning.Jas4pp 1.5 © Java Analysis Studio for Particle Physics