public class CombinedDataset extends AbstractIntervalXYDataset implements XYDataset, OHLCDataset, IntervalXYDataset, CombinationDataset
XYDataset, OHLCDataset
and IntervalXYDataset together exposing the union of all the series
under one dataset.| Constructor and Description |
|---|
CombinedDataset()
Deprecated.
Default constructor for an empty combination.
|
CombinedDataset(SeriesDataset[] data)
Deprecated.
Creates a CombinedDataset initialized with an array of SeriesDatasets.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(SeriesDataset data)
Deprecated.
Adds one SeriesDataset to the combination.
|
void |
add(SeriesDataset[] data)
Deprecated.
Adds an array of SeriesDataset's to the combination.
|
void |
add(SeriesDataset data,
int series)
Deprecated.
Adds one series from a SeriesDataset to the combination.
|
int |
getChildPosition(Dataset child)
Deprecated.
Returns the child position.
|
java.lang.Number |
getClose(int series,
int item)
Deprecated.
Returns the close-value for the specified series and item.
|
double |
getCloseValue(int series,
int item)
Deprecated.
Returns the close-value (as a double primitive) for an item within a
series.
|
java.lang.Number |
getEndX(int series,
int item)
Deprecated.
Returns the ending X value for the specified series and item.
|
java.lang.Number |
getEndY(int series,
int item)
Deprecated.
Returns the ending Y value for the specified series and item.
|
java.lang.Number |
getHigh(int series,
int item)
Deprecated.
Returns the high-value for the specified series and item.
|
double |
getHighValue(int series,
int item)
Deprecated.
Returns the high-value (as a double primitive) for an item within a
series.
|
int |
getItemCount(int series)
Deprecated.
Returns the number of items in a series.
|
java.lang.Number |
getLow(int series,
int item)
Deprecated.
Returns the low-value for the specified series and item.
|
double |
getLowValue(int series,
int item)
Deprecated.
Returns the low-value (as a double primitive) for an item within a
series.
|
int[] |
getMap()
Deprecated.
Returns a map or indirect indexing form our series into parent's series.
|
java.lang.Number |
getOpen(int series,
int item)
Deprecated.
Returns the open-value for the specified series and item.
|
double |
getOpenValue(int series,
int item)
Deprecated.
Returns the open-value (as a double primitive) for an item within a
series.
|
SeriesDataset |
getParent()
Deprecated.
Returns the parent Dataset of this combination.
|
int |
getSeriesCount()
Deprecated.
Returns the number of series in the dataset.
|
java.lang.Comparable |
getSeriesKey(int series)
Deprecated.
Returns the key for a series.
|
java.lang.Number |
getStartX(int series,
int item)
Deprecated.
Returns the starting X value for the specified series and item.
|
java.lang.Number |
getStartY(int series,
int item)
Deprecated.
Returns the starting Y value for the specified series and item.
|
java.lang.Number |
getVolume(int series,
int item)
Deprecated.
Returns the volume value for the specified series and item.
|
double |
getVolumeValue(int series,
int item)
Deprecated.
Returns the volume-value (as a double primitive) for an item within a
series.
|
java.lang.Number |
getX(int series,
int item)
Deprecated.
Returns the X-value for the specified series and item.
|
java.lang.Number |
getY(int series,
int item)
Deprecated.
Returns the Y-value for the specified series and item.
|
getEndXValue, getEndYValue, getStartXValue, getStartYValuegetDomainOrder, getXValue, getYValueindexOf, seriesChangedaddChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndXValue, getEndYValue, getStartXValue, getStartYValuegetDomainOrder, getXValue, getYValueindexOfaddChangeListener, getGroup, removeChangeListener, setGrouppublic CombinedDataset()
public CombinedDataset(SeriesDataset[] data)
data - array of SeriesDataset that contains the SeriesDatasets to
combine.public void add(SeriesDataset data)
data - the SeriesDataset to add.public void add(SeriesDataset[] data)
data - array of SeriesDataset to addpublic 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.Comparable getSeriesKey(int series)
getSeriesKey in interface SeriesDatasetgetSeriesKey in class AbstractSeriesDatasetseries - the series (zero-based index).public java.lang.Number getX(int series, int item)
Note: throws ClassCastException if the series is not from
a XYDataset.
public java.lang.Number getY(int series, int item)
Note: throws ClassCastException if the series is not from
a XYDataset.
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 getHigh(int series, int item)
Note: throws ClassCastException if the series is not from a
OHLCDataset.
getHigh in interface OHLCDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).public double getHighValue(int series, int item)
getHighValue in interface OHLCDatasetseries - the series (zero-based index).item - the item (zero-based index).public java.lang.Number getLow(int series, int item)
Note: throws ClassCastException if the series is not from a
OHLCDataset.
getLow in interface OHLCDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).public double getLowValue(int series, int item)
getLowValue in interface OHLCDatasetseries - the series (zero-based index).item - the item (zero-based index).public java.lang.Number getOpen(int series, int item)
Note: throws ClassCastException if the series is not from a
OHLCDataset.
getOpen in interface OHLCDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).public double getOpenValue(int series, int item)
getOpenValue in interface OHLCDatasetseries - the series (zero-based index).item - the item (zero-based index).public java.lang.Number getClose(int series, int item)
Note: throws ClassCastException if the series is not from a
OHLCDataset.
getClose in interface OHLCDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).public double getCloseValue(int series, int item)
getCloseValue in interface OHLCDatasetseries - the series (zero-based index).item - the item (zero-based index).public java.lang.Number getVolume(int series, int item)
Note: throws ClassCastException if the series is not from a
OHLCDataset.
getVolume in interface OHLCDatasetseries - the index of the series of interest (zero-based).item - the index of the item of interest (zero-based).public double getVolumeValue(int series, int item)
getVolumeValue in interface OHLCDatasetseries - the series (zero-based index).item - the item (zero-based index).public java.lang.Number getStartX(int series, int item)
getStartX 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 getEndX(int series, int item)
getEndX 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 getStartY(int series, int item)
getStartY 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 getEndY(int series, int item)
getEndY 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.