|
||||||||||
| 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
org.jfree.data.AbstractXYDataset
org.jfree.data.AbstractIntervalXYDataset
org.jfree.data.CombinedDataset
This class can combine instances of XYDataset, HighLowDataset and
IntervalXYDataset together exposing the union of all the series under one dataset.
| Constructor Summary | |
CombinedDataset()
Default constructor for an empty combination. |
|
CombinedDataset(SeriesDataset[] data)
Creates a CombinedDataset initialized with an array of SeriesDatasets. |
|
| Method Summary | |
void |
add(SeriesDataset data)
Adds one SeriesDataset to the combination. |
void |
add(SeriesDataset[] data)
Adds an array of SeriesDataset's to the combination. |
void |
add(SeriesDataset data,
int series)
Adds one series from a SeriesDataset to the combination. |
int |
getChildPosition(Dataset child)
Returns the child position. |
double |
getClose(int series,
int item)
Returns the close-value (as a double primitive) for an item within a series. |
java.lang.Number |
getCloseValue(int series,
int item)
Returns the close-value for the specified series and item. |
java.lang.Number |
getEndXValue(int series,
int item)
Returns the ending X value for the specified series and item. |
java.lang.Number |
getEndYValue(int series,
int item)
Returns the ending Y value for the specified series and item. |
double |
getHigh(int series,
int item)
Returns the high-value (as a double primitive) for an item within a series. |
java.lang.Number |
getHighValue(int series,
int item)
Returns the high-value for the specified series and item. |
int |
getItemCount(int series)
Returns the number of items in a series. |
double |
getLow(int series,
int item)
Returns the low-value (as a double primitive) for an item within a series. |
java.lang.Number |
getLowValue(int series,
int item)
Returns the low-value for the specified series and item. |
int[] |
getMap()
Returns a map or indirect indexing form our series into parent's series. |
double |
getOpen(int series,
int item)
Returns the open-value (as a double primitive) for an item within a series. |
java.lang.Number |
getOpenValue(int series,
int item)
Returns the open-value for the specified series and item. |
SeriesDataset |
getParent()
Returns the parent Dataset of this combination. |
int |
getSeriesCount()
Returns the number of series in the dataset. |
java.lang.String |
getSeriesName(int series)
Returns the name of a series. |
java.lang.Number |
getStartXValue(int series,
int item)
Returns the starting X value for the specified series and item. |
java.lang.Number |
getStartYValue(int series,
int item)
Returns the starting Y value for the specified series and item. |
double |
getVolume(int series,
int item)
Returns the volume-value (as a double primitive) for an item within a series. |
java.lang.Number |
getVolumeValue(int series,
int item)
Returns the volume value for the specified series and item. |
java.lang.Number |
getXValue(int series,
int item)
Returns the X-value for the specified series and item. |
java.lang.Number |
getYValue(int series,
int item)
Returns the Y-value for the specified series and item. |
| Methods inherited from class org.jfree.data.AbstractIntervalXYDataset |
getEndX, getEndY, getStartX, getStartY |
| Methods inherited from class org.jfree.data.AbstractXYDataset |
getX, getY |
| 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.XYDataset |
getX, getY |
| Methods inherited from interface org.jfree.data.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
| Methods inherited from interface org.jfree.data.IntervalXYDataset |
getEndX, getEndY, getStartX, getStartY |
| Constructor Detail |
public CombinedDataset()
public CombinedDataset(SeriesDataset[] data)
data - array of SeriesDataset that contains the SeriesDatasets to combine.| Method Detail |
public void add(SeriesDataset data)
data - the SeriesDataset to add.public void add(SeriesDataset[] data)
data - array of SeriesDataset to add
public void add(SeriesDataset data,
int series)
data - the SeriesDataset where series is containedseries - series to addpublic int getSeriesCount()
getSeriesCount in interface SeriesDatasetgetSeriesCount in class AbstractSeriesDatasetpublic java.lang.String getSeriesName(int series)
getSeriesName in interface SeriesDatasetgetSeriesName in class AbstractSeriesDatasetseries - the series (zero-based index).
public java.lang.Number getXValue(int series,
int item)
Note: throws ClassCastException if the series is not from a XYDataset.
getXValue in interface XYDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public java.lang.Number getYValue(int series,
int item)
Note: throws ClassCastException if the series is not from a XYDataset.
getYValue in interface XYDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public int getItemCount(int series)
Note: throws ClassCastException if the series is not from a XYDataset.
getItemCount in interface XYDatasetseries - the index of the series of interest (zero-based).
public java.lang.Number getHighValue(int series,
int item)
Note: throws ClassCastException if the series is not from a
HighLowDataset.
getHighValue in interface HighLowDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public double getHigh(int series,
int item)
getHigh in interface HighLowDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getLowValue(int series,
int item)
Note: throws ClassCastException if the series is not from a
HighLowDataset.
getLowValue in interface HighLowDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public double getLow(int series,
int item)
getLow in interface HighLowDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getOpenValue(int series,
int item)
Note: throws ClassCastException if the series is not from a
HighLowDataset.
getOpenValue in interface HighLowDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public double getOpen(int series,
int item)
getOpen in interface HighLowDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getCloseValue(int series,
int item)
Note: throws ClassCastException if the series is not from a
HighLowDataset.
getCloseValue in interface HighLowDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public double getClose(int series,
int item)
getClose in interface HighLowDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getVolumeValue(int series,
int item)
Note: throws ClassCastException if the series is not from a
HighLowDataset.
getVolumeValue in interface HighLowDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public double getVolume(int series,
int item)
getVolume in interface HighLowDatasetseries - the series (zero-based index).item - the item (zero-based index).
public java.lang.Number getStartXValue(int series,
int item)
getStartXValue in interface IntervalXYDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public java.lang.Number getEndXValue(int series,
int item)
getEndXValue in interface IntervalXYDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public java.lang.Number getStartYValue(int series,
int item)
getStartYValue in interface IntervalXYDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public java.lang.Number getEndYValue(int series,
int item)
getEndYValue in interface IntervalXYDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).
public SeriesDataset getParent()
null.
getParent in interface CombinationDatasetnull.public int[] getMap()
getMap in interface CombinationDatasetgetParent()public int getChildPosition(Dataset child)
child - the child dataset.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||