public class DefaultIntervalXYDataset extends AbstractIntervalXYDataset implements org.jfree.util.PublicCloneable
IntervalXYDataset
interface
is provided by the XYIntervalSeriesCollection
class.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.
|
getDomainOrder
indexOf, seriesChanged
addChangeListener, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDomainOrder
indexOf
addChangeListener, getGroup, removeChangeListener, setGroup
public DefaultIntervalXYDataset()
DefaultIntervalXYDataset
instance, initially
containing no data.public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
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 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 XYDataset
getXValue
in class AbstractXYDataset
series
- 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 XYDataset
getYValue
in class AbstractXYDataset
series
- 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 IntervalXYDataset
getStartXValue
in class AbstractIntervalXYDataset
series
- 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 IntervalXYDataset
getEndXValue
in class AbstractIntervalXYDataset
series
- 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 IntervalXYDataset
getStartYValue
in class AbstractIntervalXYDataset
series
- 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 IntervalXYDataset
getEndYValue
in class AbstractIntervalXYDataset
series
- 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 IntervalXYDataset
series
- 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 IntervalXYDataset
series
- 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 IntervalXYDataset
series
- 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 IntervalXYDataset
series
- 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 XYDataset
series
- 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 XYDataset
series
- 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.Object
obj
- the object (null
permitted).public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractDataset
java.lang.CloneNotSupportedException
- if the dataset contains a series with
a key that cannot be cloned.