|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.data.AbstractDataset
com.jrefinery.data.AbstractSeriesDataset
com.jrefinery.data.CombinedXYDataset
public class CombinedXYDataset
This class can combine XYDatasets, HighLowDatasets and IntervalXYDatasets together exposing the union of all the series under one Dataset. This is required when using a CombinedPlot with a combination of XYPlots, HighLowPlots, TimeSeriesPlot's and VerticalXYBarPlots.
com.jrefinery.chart.CombinedPlot| Field Summary |
|---|
| Fields inherited from class com.jrefinery.data.AbstractDataset |
|---|
listeners |
| Constructor Summary | |
|---|---|
CombinedXYDataset()
Default constructor for an empty combination. |
|
CombinedXYDataset(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. |
void |
addXYData(int series,
java.lang.Object xObject,
java.lang.Object yObject,
int n)
|
java.lang.Object |
get(int no)
|
int |
getChildPosition(Dataset child)
|
int |
getItemCount(int series)
Returns the number of items in a series. |
int[] |
getMap()
Returns a map or indirect indexing form our series into parent's series. |
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 |
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 com.jrefinery.data.AbstractSeriesDataset |
|---|
getLegendItemCount, getLegendItemLabels, seriesChanged |
| Methods inherited from class com.jrefinery.data.AbstractDataset |
|---|
addChangeListener, fireDatasetChanged, notifyListeners, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jrefinery.data.Dataset |
|---|
addChangeListener, removeChangeListener |
| Constructor Detail |
|---|
public CombinedXYDataset()
public CombinedXYDataset(SeriesDataset[] data)
data - Array of SeriesDataset that contains the SeriesDatasets to combine.| Method Detail |
|---|
public void add(SeriesDataset data)
data - SeriesDataset to add.public void add(SeriesDataset[] data)
data - Array of SeriesDataset to add
public void add(SeriesDataset data,
int series)
data - SeriesDataset where series is containedseries - to add
public void addXYData(int series,
java.lang.Object xObject,
java.lang.Object yObject,
int n)
public 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)
getXValue in interface XYDatasetseries - The index of the series of interest (zero-based);item - The index of the item of interest (zero-based).
java.lang.ClassCastException - if the series if not from a XYDataset
public java.lang.Number getYValue(int series,
int item)
getYValue in interface XYDatasetseries - The index of the series of interest (zero-based);item - The index of the item of interest (zero-based).
java.lang.ClassCastException - if the series if not from a XYDatasetpublic int getItemCount(int series)
getItemCount in interface XYDatasetseries - The index of the series of interest (zero-based);
java.lang.ClassCastException - if the series if not from a XYDatasetpublic SeriesDataset getParent()
getParent in interface CombinationDatasetpublic int[] getMap()
getMap in interface CombinationDatasetgetParent()public int getChildPosition(Dataset child)
public java.lang.Object get(int no)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||