Package org.jfree.data.xy
Class XYIntervalSeriesCollection
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.XYIntervalSeriesCollection
- All Implemented Interfaces:
ObjectInputValidation,Serializable,Cloneable,EventListener,PublicCloneable,Dataset,SeriesChangeListener,SeriesDataset,IntervalXYDataset,XYDataset
public class XYIntervalSeriesCollection
extends AbstractIntervalXYDataset
implements IntervalXYDataset, PublicCloneable, Serializable
A collection of
XYIntervalSeries objects.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofXIntervalSeriesCollection. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSeries(XYIntervalSeries series) Adds a series to the collection and sends aDatasetChangeEventto all registered listeners.clone()Returns a clone of this dataset.booleanTests this instance for equality with an arbitrary object.getEndX(int series, int item) Returns the end x-value for an item within a series.doublegetEndXValue(int series, int item) Returns the end x-value (as a double primitive) for an item within a series.getEndY(int series, int item) Returns the end y-value for an item within a series.doublegetEndYValue(int series, int item) Returns the end y-value (as a double primitive) for an item within a series.intgetItemCount(int series) Returns the number of items in the specified series.getSeries(int series) Returns a series from the collection.intReturns the number of series in the collection.getSeriesKey(int series) Returns the key for a series.getStartX(int series, int item) Returns the start x-value for an item within a series.doublegetStartXValue(int series, int item) Returns the start x-value (as a double primitive) for an item within a series.getStartY(int series, int item) Returns the start y-value for an item within a series.doublegetStartYValue(int series, int item) Returns the start y-value (as a double primitive) for an item within a series.getX(int series, int item) Returns the x-value for an item within a series.getY(int series, int item) Returns the y-value for an item within a series.doublegetYValue(int series, int item) Returns the y-value (as a double primitive) for an item within a series.voidRemoves all the series from the collection and sends aDatasetChangeEventto all registered listeners.voidremoveSeries(int series) Removes a series from the collection and sends aDatasetChangeEventto all registered listeners.voidremoveSeries(XYIntervalSeries series) Removes a series from the collection and sends aDatasetChangeEventto all registered listeners.Methods inherited from class org.jfree.data.xy.AbstractXYDataset
getDomainOrder, getXValueMethods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChangedMethods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, canEqual, fireDatasetChanged, getGroup, getNotify, hashCode, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroupMethods inherited from interface org.jfree.data.general.SeriesDataset
indexOfMethods inherited from interface org.jfree.data.xy.XYDataset
getDomainOrder, getXValue
-
Constructor Details
-
XYIntervalSeriesCollection
public XYIntervalSeriesCollection()Creates a new instance ofXIntervalSeriesCollection.
-
-
Method Details
-
addSeries
Adds a series to the collection and sends aDatasetChangeEventto all registered listeners.- Parameters:
series- the series (nullnot permitted).
-
getSeriesCount
Returns the number of series in the collection.- Specified by:
getSeriesCountin interfaceSeriesDataset- Specified by:
getSeriesCountin classAbstractSeriesDataset- Returns:
- The series count.
-
getSeries
Returns a series from the collection.- Parameters:
series- the series index (zero-based).- Returns:
- The series.
- Throws:
IllegalArgumentException- ifseriesis not in the range0togetSeriesCount() - 1.
-
getSeriesKey
Returns the key for a series.- Specified by:
getSeriesKeyin interfaceSeriesDataset- Specified by:
getSeriesKeyin classAbstractSeriesDataset- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).- Returns:
- The key for a series.
- Throws:
IllegalArgumentException- ifseriesis not in the specified range.
-
getItemCount
Returns the number of items in the specified series.- Specified by:
getItemCountin interfaceXYDataset- Parameters:
series- the series (zero-based index).- Returns:
- The item count.
- Throws:
IllegalArgumentException- ifseriesis not in the range0togetSeriesCount() - 1.
-
getX
Returns the x-value for an item within a series. -
getStartXValue
Returns the start x-value (as a double primitive) for an item within a series.- Specified by:
getStartXValuein interfaceIntervalXYDataset- Overrides:
getStartXValuein classAbstractIntervalXYDataset- Parameters:
series- the series index (zero-based).item- the item index (zero-based).- Returns:
- The value.
- See Also:
-
getEndXValue
Returns the end x-value (as a double primitive) for an item within a series.- Specified by:
getEndXValuein interfaceIntervalXYDataset- Overrides:
getEndXValuein classAbstractIntervalXYDataset- Parameters:
series- the series index (zero-based).item- the item index (zero-based).- Returns:
- The value.
- See Also:
-
getYValue
Returns the y-value (as a double primitive) for an item within a series.- Specified by:
getYValuein interfaceXYDataset- Overrides:
getYValuein classAbstractXYDataset- Parameters:
series- the series index (zero-based).item- the item index (zero-based).- Returns:
- The value.
-
getStartYValue
Returns the start y-value (as a double primitive) for an item within a series.- Specified by:
getStartYValuein interfaceIntervalXYDataset- Overrides:
getStartYValuein classAbstractIntervalXYDataset- Parameters:
series- the series index (zero-based).item- the item index (zero-based).- Returns:
- The value.
- See Also:
-
getEndYValue
Returns the end y-value (as a double primitive) for an item within a series.- Specified by:
getEndYValuein interfaceIntervalXYDataset- Overrides:
getEndYValuein classAbstractIntervalXYDataset- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The value.
- See Also:
-
getY
Returns the y-value for an item within a series. -
getStartX
Returns the start x-value for an item within a series.- Specified by:
getStartXin interfaceIntervalXYDataset- Parameters:
series- the series index.item- the item index.- Returns:
- The x-value.
-
getEndX
Returns the end x-value for an item within a series.- Specified by:
getEndXin interfaceIntervalXYDataset- Parameters:
series- the series index.item- the item index.- Returns:
- The x-value.
-
getStartY
Returns the start y-value for an item within a series. This method maps directly togetY(int, int).- Specified by:
getStartYin interfaceIntervalXYDataset- Parameters:
series- the series index.item- the item index.- Returns:
- The start y-value.
-
getEndY
Returns the end y-value for an item within a series. This method maps directly togetY(int, int).- Specified by:
getEndYin interfaceIntervalXYDataset- Parameters:
series- the series index.item- the item index.- Returns:
- The end y-value.
-
removeSeries
Removes a series from the collection and sends aDatasetChangeEventto all registered listeners.- Parameters:
series- the series index (zero-based).
-
removeSeries
Removes a series from the collection and sends aDatasetChangeEventto all registered listeners.- Parameters:
series- the series (nullnot permitted).
-
removeAllSeries
Removes all the series from the collection and sends aDatasetChangeEventto all registered listeners. -
equals
Tests this instance for equality with an arbitrary object.- Overrides:
equalsin classAbstractDataset- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
clone
Returns a clone of this dataset.- Specified by:
clonein interfacePublicCloneable- Overrides:
clonein classAbstractDataset- Returns:
- A clone of this dataset.
- Throws:
CloneNotSupportedException- if there is a problem cloning.
-