|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.DefaultIntervalXYDataset
public class DefaultIntervalXYDataset
A dataset that defines a range (interval) for both the x-values and the
y-values. This implementation uses six arrays to store the x, start-x,
end-x, y, start-y and end-y values.
An alternative implementation of the IntervalXYDataset
interface
is provided by the XYIntervalSeriesCollection
class.
Constructor Summary | |
---|---|
DefaultIntervalXYDataset()
Creates a new DefaultIntervalXYDataset instance, initially
containing no data. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jfree.data.xy.AbstractXYDataset |
---|
getDomainOrder |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset |
---|
indexOf, seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset |
---|
addChangeListener, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.xy.XYDataset |
---|
getDomainOrder |
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 |
---|
public DefaultIntervalXYDataset()
DefaultIntervalXYDataset
instance, initially
containing no data.
Method Detail |
---|
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 containing the x-values and the
second containing the y-values).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.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |