|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.data.general.AbstractDataset org.jfree.data.general.AbstractSeriesDataset org.jfree.data.xy.AbstractXYDataset org.jfree.data.xy.AbstractIntervalXYDataset org.jfree.data.xy.XIntervalSeriesCollection
public class XIntervalSeriesCollection
A collection of XIntervalSeries
objects.
XIntervalSeries
,
Serialized FormConstructor Summary | |
---|---|
XIntervalSeriesCollection()
Creates a new instance of XIntervalSeriesCollection . |
Method Summary | |
---|---|
void |
addSeries(XIntervalSeries 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. |
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. |
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. |
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. |
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(XIntervalSeries series)
Removes a series from the collection and sends a DatasetChangeEvent to all registered listeners. |
Methods inherited from class org.jfree.data.xy.AbstractIntervalXYDataset |
---|
getEndYValue, getStartYValue |
Methods inherited from class org.jfree.data.xy.AbstractXYDataset |
---|
getDomainOrder, getXValue |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset |
---|
indexOf, seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset |
---|
addChangeListener, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.xy.IntervalXYDataset |
---|
getEndYValue, getStartYValue |
Methods inherited from interface org.jfree.data.xy.XYDataset |
---|
getDomainOrder, getXValue |
Methods inherited from interface org.jfree.data.general.SeriesDataset |
---|
indexOf |
Methods inherited from interface org.jfree.data.general.Dataset |
---|
addChangeListener, getGroup, removeChangeListener, setGroup |
Constructor Detail |
---|
public XIntervalSeriesCollection()
XIntervalSeriesCollection
.
Method Detail |
---|
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).
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)
getX
in interface XYDataset
series
- the series index.item
- the item index.
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).
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).
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 java.lang.Number getY(int series, int item)
getY
in interface XYDataset
series
- the series index.item
- the item index.
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(XIntervalSeries 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.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |