|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 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)
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 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)
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)
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)
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)
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)
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)
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.Objectobj - the object (null permitted).
public int hashCode()
hashCode in class java.lang.Object
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractDatasetjava.lang.CloneNotSupportedException - if the dataset contains a series with
a key that cannot be cloned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||