Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
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.YIntervalSeriesCollection
public class YIntervalSeriesCollection
extends AbstractIntervalXYDataset
implements IntervalXYDataset, Serializable
YIntervalSeries
objects.
YIntervalSeries
Constructor Summary | |
|
Method Summary | |
void |
|
Object |
|
boolean |
|
Number |
|
Number |
|
double |
|
int |
|
YIntervalSeries |
|
int |
|
Comparable |
|
Number |
|
Number |
|
double |
|
Number |
|
Number |
|
double |
|
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 | |
getSeriesCount , getSeriesKey , indexOf , seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset | |
addChangeListener , clone , fireDatasetChanged , getGroup , hasListener , notifyListeners , removeChangeListener , setGroup , validateObject |
public YIntervalSeriesCollection()
Creates a new instance ofYIntervalSeriesCollection
.
public void addSeries(YIntervalSeries series)
Adds a series to the collection and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
series
- the series (null
not permitted).
public Object clone() throws CloneNotSupportedException
Returns a clone of this instance.
- Overrides:
- clone in interface AbstractDataset
- Returns:
- A clone.
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
- Parameters:
obj
- the object (null
permitted).
- Returns:
- A boolean.
public Number getEndX(int series, int item)
Returns the end x-value for an item within a series. This method maps directly togetX(int,int)
.
- Specified by:
- getEndX in interface IntervalXYDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The x-value.
public Number getEndY(int series, int item)
Returns the end y-value for an item within a series.
- Specified by:
- getEndY in interface IntervalXYDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The end y-value.
public double getEndYValue(int series, int item)
Returns the end y-value (as a double primitive) for an item within a series.
- Specified by:
- getEndYValue in interface IntervalXYDataset
- Overrides:
- getEndYValue in interface AbstractIntervalXYDataset
- Parameters:
series
- the series (zero-based index).item
- the item (zero-based index).
- Returns:
- The value.
public int getItemCount(int series)
Returns the number of items in the specified series.
- Specified by:
- getItemCount in interface XYDataset
- Parameters:
series
- the series (zero-based index).
- Returns:
- The item count.
public YIntervalSeries getSeries(int series)
Returns a series from the collection.
- Parameters:
series
- the series index (zero-based).
- Returns:
- The series.
public int getSeriesCount()
Returns the number of series in the collection.
- Specified by:
- getSeriesCount in interface SeriesDataset
- Overrides:
- getSeriesCount in interface AbstractSeriesDataset
- Returns:
- The series count.
public Comparable getSeriesKey(int series)
Returns the key for a series.
- Specified by:
- getSeriesKey in interface SeriesDataset
- Overrides:
- getSeriesKey in interface AbstractSeriesDataset
- Parameters:
series
- the series index (in the range0
togetSeriesCount() - 1
).
- Returns:
- The key for a series.
public Number getStartX(int series, int item)
Returns the start x-value for an item within a series. This method maps directly togetX(int,int)
.
- Specified by:
- getStartX in interface IntervalXYDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The x-value.
public Number getStartY(int series, int item)
Returns the start y-value for an item within a series.
- Specified by:
- getStartY in interface IntervalXYDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The start y-value.
public double getStartYValue(int series, int item)
Returns the start y-value (as a double primitive) for an item within a series.
- Specified by:
- getStartYValue in interface IntervalXYDataset
- Overrides:
- getStartYValue in interface AbstractIntervalXYDataset
- Parameters:
series
- the series index (zero-based).item
- the item index (zero-based).
- Returns:
- The value.
public Number getX(int series, int item)
Returns the x-value for an item within a series.
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The x-value.
public Number getY(int series, int item)
Returns the y-value for an item within a series.
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The y-value.
public double getYValue(int series, int item)
Returns the y-value (as a double primitive) for an item within a series.
- Overrides:
- getYValue in interface AbstractXYDataset
- Parameters:
series
- the series index (zero-based).item
- the item index (zero-based).
- Returns:
- The value.