jyplot.XYErrorBar
Class XYErrorBarSeriesCollection
- java.lang.Object
-
- org.jfree.data.general.AbstractDataset
-
- org.jfree.data.general.AbstractSeriesDataset
-
- org.jfree.data.xy.AbstractXYDataset
-
- org.jfree.data.xy.AbstractIntervalXYDataset
-
- jyplot.XYErrorBar.XYErrorBarSeriesCollection
-
- All Implemented Interfaces:
- java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, Dataset, SeriesChangeListener, SeriesDataset, IntervalXYDataset, XYDataset
public class XYErrorBarSeriesCollection extends AbstractIntervalXYDataset
Represents a collection ofXYErrorBarSeriesobjects that can be used as a dataset.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description XYErrorBarSeriesCollection()Constructs an empty dataset.XYErrorBarSeriesCollection(XYErrorBarSeries series)Constructs a dataset and populates it with a single series.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddSeries(XYErrorBarSeries series)Adds a series to the collection and sends aDatasetChangeEventto all registered listeners.java.lang.NumbergetEndX(int series, int item)Returns the ending X value for the specified series and item.java.lang.NumbergetEndY(int series, int item)Returns the ending Y value for the specified series and item.intgetItemCount(int series)Returns the number of items in the specified series.XYErrorBarSeriesgetSeries(int series)Returns a series from the collection.intgetSeriesCount()Returns the number of series in the collection.java.lang.ComparablegetSeriesKey(int series)Returns the key for a series.java.lang.StringgetSeriesName(int series)Returns the name of a series.java.lang.NumbergetStartX(int series, int item)Returns the starting X value for the specified series and item.java.lang.NumbergetStartY(int series, int item)Returns the starting Y value for the specified series and item.java.lang.NumbergetX(int series, int item)Returns the x-value for the specified series and item.java.lang.NumbergetY(int series, int item)Returns the y-value for the specified series and item.XYErrorBarSeriesremoveSeries(int series)Removes a series from the collection and sends aDatasetChangeEventto all registered listeners.-
Methods inherited from class org.jfree.data.xy.AbstractIntervalXYDataset
getEndXValue, getEndYValue, getStartXValue, getStartYValue
-
Methods inherited from class org.jfree.data.xy.AbstractXYDataset
getDomainOrder, getXValue, getYValue
-
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChanged
-
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jfree.data.xy.XYDataset
getDomainOrder, getXValue, getYValue
-
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
-
XYErrorBarSeriesCollection
public XYErrorBarSeriesCollection()
Constructs an empty dataset.
-
XYErrorBarSeriesCollection
public XYErrorBarSeriesCollection(XYErrorBarSeries series)
Constructs a dataset and populates it with a single series.- Parameters:
series- the series
-
-
Method Detail
-
getSeriesName
public java.lang.String getSeriesName(int series)
Returns the name of a series.- Parameters:
series- the series item (zero-based).- Returns:
- The name of a series.
-
getSeriesCount
public int getSeriesCount()
Returns the number of series in the collection.- Specified by:
getSeriesCountin interfaceSeriesDataset- Specified by:
getSeriesCountin classAbstractSeriesDataset- Returns:
- The series count.
-
getItemCount
public int getItemCount(int series)
Returns the number of items in the specified series.- Parameters:
series- the series (zero-based item).- Returns:
- The item count.
-
removeSeries
public XYErrorBarSeries removeSeries(int series)
Removes a series from the collection and sends aDatasetChangeEventto all registered listeners.- Parameters:
series- the series item (zero-based).- Returns:
- The series/
-
getSeries
public XYErrorBarSeries getSeries(int series)
Returns a series from the collection.- Parameters:
series- the series item (zero-based).- Returns:
- The series.
-
addSeries
public void addSeries(XYErrorBarSeries series)
Adds a series to the collection and sends aDatasetChangeEventto all registered listeners.- Parameters:
series- the series (nullnot permitted).
-
getY
public java.lang.Number getY(int series, int item)Returns the y-value for the specified series and item.- Parameters:
series- the series (zero-based item).item- the item (zero-based index).- Returns:
- The value.
-
getStartY
public java.lang.Number getStartY(int series, int item)Returns the starting Y value for the specified series and item.- Parameters:
series- the series (zero-based item).item- the item (zero-based index).- Returns:
- The starting Y value.
-
getEndY
public java.lang.Number getEndY(int series, int item)Returns the ending Y value for the specified series and item.- Parameters:
series- the series (zero-based item).item- the item (zero-based index).- Returns:
- The ending Y value.
-
getX
public java.lang.Number getX(int series, int item)Returns the x-value for the specified series and item.- Parameters:
series- the series (zero-based item).item- the item (zero-based index).- Returns:
- The value.
-
getStartX
public java.lang.Number getStartX(int series, int item)Returns the starting X value for the specified series and item.- Parameters:
series- the series (zero-based item).item- the item (zero-based index).- Returns:
- The starting X value.
-
getEndX
public java.lang.Number getEndX(int series, int item)Returns the ending X value for the specified series and item.- Parameters:
series- the series (zero-based item).item- the item (zero-based index).- Returns:
- The ending X value.
-
getSeriesKey
public java.lang.Comparable getSeriesKey(int series)
Description copied from class:AbstractSeriesDatasetReturns the key for a series.If
seriesis not within the specified range, the implementing method should throw anIndexOutOfBoundsException(preferred) or anIllegalArgumentException.- Specified by:
getSeriesKeyin interfaceSeriesDataset- Specified by:
getSeriesKeyin classAbstractSeriesDataset- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).- Returns:
- The series key.
-
-
DMelt 3.0 © DataMelt by jWork.ORG