|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jfree.data.AbstractDataset
|
+--org.jfree.data.AbstractSeriesDataset
|
+--org.jfree.data.SubSeriesDataset
This class will create a Dataset with one or more series from another SeriesDataset. This is required when using a combined plot to assign a sub-dataset to internal plots and avoid displaying all series on all internal plots.
CombinedXYPlot,
Serialized Form| Field Summary |
| Fields inherited from interface org.jfree.data.SignalsDataset |
ENTER_LONG, ENTER_SHORT, EXIT_LONG, EXIT_SHORT |
| Constructor Summary | |
SubSeriesDataset(SeriesDataset parent,
int series)
Creates a SubSeriesDataset using one series from parent.
|
|
SubSeriesDataset(SeriesDataset parent,
int[] map)
Creates a SubSeriesDataset using one or more series from parent.
|
|
| Method Summary | |
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. |
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 |
getLevel(int series,
int item)
Returns the level. |
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. |
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. |
int |
getType(int series,
int item)
Returns the type. |
java.lang.Number |
getVolumeValue(int series,
int item)
Returns the volume. |
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.AbstractSeriesDataset |
seriesChanged |
| Methods inherited from class org.jfree.data.AbstractDataset |
addChangeListener, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup |
| Methods inherited from class java.lang.Object |
clone, 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 SubSeriesDataset(SeriesDataset parent,
int[] map)
parent.
The series to use are passed as an array of int.
parent - underlying datasetmap - int[] of series from parent to include in this Dataset
public SubSeriesDataset(SeriesDataset parent,
int series)
parent.
The series to is passed as an int.
parent - underlying datasetseries - series from parent to include in this Dataset| Method Detail |
public java.lang.Number getHighValue(int series,
int item)
getHighValue in interface HighLowDatasetseries - 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 HighLowDataset
public java.lang.Number getLowValue(int series,
int item)
getLowValue in interface HighLowDatasetseries - 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 HighLowDataset
public java.lang.Number getOpenValue(int series,
int item)
getOpenValue in interface HighLowDatasetseries - 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 HighLowDataset
public java.lang.Number getCloseValue(int series,
int item)
getCloseValue in interface HighLowDatasetseries - 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 HighLowDataset
public java.lang.Number getVolumeValue(int series,
int item)
getVolumeValue in interface HighLowDatasetseries - the series (zero based index).item - the item (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 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 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 int getType(int series,
int item)
getType in interface SignalsDatasetseries - the series (zero based index).item - the item (zero based index).
public double getLevel(int series,
int item)
getLevel in interface SignalsDatasetseries - the series (zero based index).item - the item (zero based index).
public SeriesDataset getParent()
getParent in interface CombinationDatasetpublic int[] getMap()
getMap in interface CombinationDataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||