|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.AbstractDataset
org.jfree.data.AbstractSeriesDataset
com.ge.research.charts.jfree.data.DefaultIntervalXYDataset
A default, generic, implementation of the IntervalXYDataset interface
that allows a range of data to be defined for the X values, the Y values, or both the X and Y values.
This class supports bar plots against numerical axes.
| Constructor Summary | |
DefaultIntervalXYDataset()
|
|
| Method Summary | |
void |
add(double[] xStart,
double[] yStart,
double[] xEnd,
double[] yEnd)
Adds a new dataseries to this dataset using the argument values for the start/end values for the intervals around the x and y axes. |
void |
add(java.lang.Number[] xStart,
java.lang.Number[] yStart,
java.lang.Number[] xEnd,
java.lang.Number[] yEnd)
Adds a new dataseries to this dataset using the argument values for the start/end values for the intervals around the x and y axes. |
void |
add(java.lang.String seriesName,
double[] xStart,
double[] yStart,
double[] xEnd,
double[] yEnd)
Adds a new dataseries to this dataset using the argument values for the start/end values for the intervals around the x and y axes. |
void |
add(java.lang.String seriesName,
java.lang.Number[] xStart,
java.lang.Number[] yStart,
java.lang.Number[] xEnd,
java.lang.Number[] yEnd)
Adds a new dataseries to this dataset using the argument values for the start/end values for the intervals around the x and y axes. |
void |
addSeries(org.jfree.data.XYSeries series)
Adds a single dataseries to the dataset. |
void |
addSeries(org.jfree.data.XYSeries startSeries,
org.jfree.data.XYSeries endSeries)
Adds a single dataseries to the dataset. |
java.lang.Number |
getEndXValue(int series,
int item)
|
java.lang.Number |
getEndYValue(int series,
int item)
|
int |
getItemCount(int series)
|
int |
getSeriesCount()
|
java.lang.String |
getSeriesName(int series)
|
java.lang.Number |
getStartXValue(int series,
int item)
|
java.lang.Number |
getStartYValue(int series,
int item)
|
java.lang.Number |
getXValue(int series,
int item)
|
java.lang.Number |
getYValue(int series,
int item)
|
void |
setEndXValue(int series,
int item,
java.lang.Number value)
Sets the interval end value along the x axis for the datapoint at index item within ordered series series. |
void |
setEndYValue(int series,
int item,
java.lang.Number value)
Sets the interval end value along the y axis for the datapoint at index item within ordered series series. |
void |
setSeriesName(int series,
java.lang.String name)
Sets the name of the dataseries. |
void |
setStartXValue(int series,
int item,
java.lang.Number value)
Sets the interval start value along the x axis for the datapoint at index item within ordered series series. |
void |
setStartYValue(int series,
int item,
java.lang.Number value)
Sets the interval start value along the y axis for the datapoint at index item within ordered series series. |
| Methods inherited from class org.jfree.data.AbstractSeriesDataset |
seriesChanged |
| Methods inherited from class org.jfree.data.AbstractDataset |
addChangeListener, clone, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup, validateObject |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.data.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
| Constructor Detail |
public DefaultIntervalXYDataset()
| Method Detail |
public void add(double[] xStart,
double[] yStart,
double[] xEnd,
double[] yEnd)
xStart - the array of interval start values along the x axis for the dataseriesyStart - the array of interval start values along the y axis for the dataseriesxEnd - the array of interval end values along the x axis for the dataseriesyEnd - the array of interval end values along the y axis for the dataseriesadd(java.lang.Number[], java.lang.Number[], java.lang.Number[], java.lang.Number[]),
DatasetUtilities.createNumberArray(double[])
public void add(java.lang.Number[] xStart,
java.lang.Number[] yStart,
java.lang.Number[] xEnd,
java.lang.Number[] yEnd)
xStart - the array of interval start values along the x axis for the dataseriesyStart - the array of interval start values along the y axis for the dataseriesxEnd - the array of interval end values along the x axis for the dataseriesyEnd - the array of interval end values along the y axis for the dataseriesadd(java.lang.String, java.lang.Number[], java.lang.Number[], java.lang.Number[], java.lang.Number[])
public void add(java.lang.String seriesName,
double[] xStart,
double[] yStart,
double[] xEnd,
double[] yEnd)
seriesName
seriesName - the name of the dataseries (null allowed)xStart - the array of interval start values along the x axis for the dataseriesyStart - the array of interval start values along the y axis for the dataseriesxEnd - the array of interval end values along the x axis for the dataseriesyEnd - the array of interval end values along the y axis for the dataseriesadd(java.lang.String, java.lang.Number[], java.lang.Number[], java.lang.Number[], java.lang.Number[]),
DatasetUtilities.createNumberArray(double[])
public void add(java.lang.String seriesName,
java.lang.Number[] xStart,
java.lang.Number[] yStart,
java.lang.Number[] xEnd,
java.lang.Number[] yEnd)
seriesName
seriesName - the name of the dataseries (null allowed)xStart - the array of interval start values along the x axis for the dataseriesyStart - the array of interval start values along the y axis for the dataseriesxEnd - the array of interval end values along the x axis for the dataseriesyEnd - the array of interval end values along the y axis for the dataseriespublic void addSeries(org.jfree.data.XYSeries series)
series - the dataseries to add to this datasetaddSeries(org.jfree.data.XYSeries, org.jfree.data.XYSeries)
public void addSeries(org.jfree.data.XYSeries startSeries,
org.jfree.data.XYSeries endSeries)
startSeries and endSeries into a single dataseries.
Four Lists are created (startx, starty, endx, endy) to store information about each point in the new dataseries,
and the values are populated in order form the appropriate argument series.
Finally a Map is created to store these Lists and then placed in teh ordered List of dataset series information.
startSeries - the series containing the starting x and y valuesendSeries - the series containing the ending x and y values
public java.lang.Number getEndXValue(int series,
int item)
getEndXValue in interface org.jfree.data.IntervalXYDataset
public java.lang.Number getEndYValue(int series,
int item)
getEndYValue in interface org.jfree.data.IntervalXYDatasetpublic int getItemCount(int series)
getItemCount in interface org.jfree.data.XYDatasetpublic int getSeriesCount()
getSeriesCount in interface org.jfree.data.SeriesDatasetpublic java.lang.String getSeriesName(int series)
getSeriesName in interface org.jfree.data.SeriesDataset
public java.lang.Number getStartXValue(int series,
int item)
getStartXValue in interface org.jfree.data.IntervalXYDataset
public java.lang.Number getStartYValue(int series,
int item)
getStartYValue in interface org.jfree.data.IntervalXYDataset
public java.lang.Number getXValue(int series,
int item)
getXValue in interface org.jfree.data.XYDataset
public java.lang.Number getYValue(int series,
int item)
getYValue in interface org.jfree.data.XYDataset
public void setEndXValue(int series,
int item,
java.lang.Number value)
item within ordered series series.
series - which series the data value is foritem - which datapoint of the series the data value is forvalue - the new value of the datapoint
public void setEndYValue(int series,
int item,
java.lang.Number value)
item within ordered series series.
series - which series the data value is foritem - which datapoint of the series the data value is forvalue - the new value of the datapoint
public void setStartXValue(int series,
int item,
java.lang.Number value)
item within ordered series series.
series - which series the data value is foritem - which datapoint of the series the data value is forvalue - the new value of the datapoint
public void setStartYValue(int series,
int item,
java.lang.Number value)
item within ordered series series.
series - which series the data value is foritem - which datapoint of the series the data value is forvalue - the new value of the datapoint
public void setSeriesName(int series,
java.lang.String name)
series - which series the name is forname - the new name of the dataseries
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||