public class XIntervalSeriesCollection extends AbstractIntervalXYDataset implements IntervalXYDataset, org.jfree.util.PublicCloneable, Serializable
XIntervalSeries
objects.XIntervalSeries
,
Serialized FormConstructor and Description |
---|
XIntervalSeriesCollection()
Creates a new instance of
XIntervalSeriesCollection . |
Modifier and Type | Method and Description |
---|---|
void |
addSeries(XIntervalSeries series)
Adds a series to the collection and sends a
DatasetChangeEvent
to all registered listeners. |
Object |
clone()
Returns a clone of this instance.
|
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.
|
int |
getItemCount(int series)
Returns the number of items in the specified series.
|
XIntervalSeries |
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.
|
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(XIntervalSeries series)
Removes a series from the collection and sends a
DatasetChangeEvent to all registered listeners. |
getEndYValue, getStartYValue
getDomainOrder, getXValue
indexOf, seriesChanged
addChangeListener, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndYValue, getStartYValue
getDomainOrder, getXValue
indexOf
addChangeListener, getGroup, removeChangeListener, setGroup
public XIntervalSeriesCollection()
XIntervalSeriesCollection
.public void addSeries(XIntervalSeries series)
DatasetChangeEvent
to all registered listeners.series
- the series (null
not permitted).public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public XIntervalSeries 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 (zero-based index).item
- the item (zero-based index).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 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(XIntervalSeries 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.Jas4pp 1.5 © Java Analysis Studio for Particle Physics