public class DefaultIntervalXYDataset extends AbstractIntervalXYDataset implements org.jfree.util.PublicCloneable
IntervalXYDataset interface
is provided by the XYIntervalSeriesCollection class.| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
seriesKeys
Storage for the series keys.
|
private java.util.List |
seriesList
Storage for the series in the dataset.
|
| Constructor and Description |
|---|
DefaultIntervalXYDataset()
Creates a new
DefaultIntervalXYDataset instance, initially
containing no data. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSeries(java.lang.Comparable seriesKey,
double[][] data)
Adds a series or if a series with the same key already exists replaces
the data for that series, then sends a
DatasetChangeEvent to
all registered listeners. |
java.lang.Object |
clone()
Returns a clone of this dataset.
|
boolean |
equals(java.lang.Object obj)
Tests this
DefaultIntervalXYDataset instance for equality
with an arbitrary object. |
java.lang.Number |
getEndX(int series,
int item)
Returns the ending x-value for an item within a series.
|
double |
getEndXValue(int series,
int item)
Returns the ending x-value for an item within a series.
|
java.lang.Number |
getEndY(int series,
int item)
Returns the ending y-value for an item within a series.
|
double |
getEndYValue(int series,
int item)
Returns the ending y-value for an item within a series.
|
int |
getItemCount(int series)
Returns the number of items in the specified series.
|
int |
getSeriesCount()
Returns the number of series in the dataset.
|
java.lang.Comparable |
getSeriesKey(int series)
Returns the key for a series.
|
java.lang.Number |
getStartX(int series,
int item)
Returns the starting x-value for an item within a series.
|
double |
getStartXValue(int series,
int item)
Returns the starting x-value for an item within a series.
|
java.lang.Number |
getStartY(int series,
int item)
Returns the starting y-value for an item within a series.
|
double |
getStartYValue(int series,
int item)
Returns the starting 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.
|
double |
getXValue(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 for an item within a series.
|
int |
hashCode()
Returns a hash code for this instance.
|
getDomainOrderindexOf, seriesChangedaddChangeListener, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectfinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDomainOrderindexOfaddChangeListener, getGroup, removeChangeListener, setGroupprivate java.util.List seriesKeys
private java.util.List seriesList
public DefaultIntervalXYDataset()
DefaultIntervalXYDataset instance, initially
containing no data.public int getSeriesCount()
getSeriesCount in interface SeriesDatasetgetSeriesCount in class AbstractSeriesDatasetpublic java.lang.Comparable getSeriesKey(int series)
getSeriesKey in interface SeriesDatasetgetSeriesKey in class AbstractSeriesDatasetseries - 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 XYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).java.lang.IllegalArgumentException - if series is not in the
specified range.public double getXValue(int series,
int item)
getXValue in interface XYDatasetgetXValue in class AbstractXYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getX(int, int)public double getYValue(int series,
int item)
getYValue in interface XYDatasetgetYValue in class AbstractXYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getY(int, int)public double getStartXValue(int series,
int item)
getStartXValue in interface IntervalXYDatasetgetStartXValue in class AbstractIntervalXYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getStartX(int, int)public double getEndXValue(int series,
int item)
getEndXValue in interface IntervalXYDatasetgetEndXValue in class AbstractIntervalXYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getEndX(int, int)public double getStartYValue(int series,
int item)
getStartYValue in interface IntervalXYDatasetgetStartYValue in class AbstractIntervalXYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getStartY(int, int)public double getEndYValue(int series,
int item)
getEndYValue in interface IntervalXYDatasetgetEndYValue in class AbstractIntervalXYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getEndY(int, int)public java.lang.Number getEndX(int series,
int item)
getEndX in interface IntervalXYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getEndXValue(int, int)public java.lang.Number getEndY(int series,
int item)
getEndY in interface IntervalXYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getEndYValue(int, int)public java.lang.Number getStartX(int series,
int item)
getStartX in interface IntervalXYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getStartXValue(int, int)public java.lang.Number getStartY(int series,
int item)
getStartY in interface IntervalXYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getStartYValue(int, int)public java.lang.Number getX(int series,
int item)
getX in interface XYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getXValue(int, int)public java.lang.Number getY(int series,
int item)
getY in interface XYDatasetseries - the series index (in the range 0 to
getSeriesCount() - 1).item - the item index (in the range 0 to
getItemCount(series)).java.lang.ArrayIndexOutOfBoundsException - if series is not
within the specified range.java.lang.ArrayIndexOutOfBoundsException - if item is not
within the specified range.getYValue(int, int)public void addSeries(java.lang.Comparable seriesKey,
double[][] data)
DatasetChangeEvent to
all registered listeners.seriesKey - the series key (null not permitted).data - the data (must be an array with length 6, containing six
arrays of equal length, the first three containing the x-values
(x, xLow and xHigh) and the last three containing the y-values
(y, yLow and yHigh)).public boolean equals(java.lang.Object obj)
DefaultIntervalXYDataset instance for equality
with an arbitrary object. This method returns true if and
only if:
obj is not null;obj is an instance of
DefaultIntervalXYDataset;equals in class java.lang.Objectobj - the object (null permitted).public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractDatasetjava.lang.CloneNotSupportedException - if the dataset contains a series with
a key that cannot be cloned.