|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.xy.AbstractXYDataset
org.jfree.data.xy.AbstractIntervalXYDataset
org.jfree.data.general.SubSeriesDataset
public class SubSeriesDataset
This class will create a dataset with one or more series from another
SeriesDataset.
| Field Summary |
|---|
| Fields inherited from interface org.jfree.data.xy.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 |
getClose(int series,
int item)
Returns the close-value for the specified series and item. |
double |
getCloseValue(int series,
int item)
Returns the close-value (as a double primitive) for an item within a series. |
java.lang.Number |
getEndX(int series,
int item)
Returns the ending X value for the specified series and item. |
java.lang.Number |
getEndY(int series,
int item)
Returns the ending Y value for the specified series and item. |
java.lang.Number |
getHigh(int series,
int item)
Returns the high-value for the specified series and item. |
double |
getHighValue(int series,
int item)
Returns the high-value (as a double primitive) for an item within a series. |
int |
getItemCount(int series)
Returns the number of items in a series. |
double |
getLevel(int series,
int item)
Returns the level. |
java.lang.Number |
getLow(int series,
int item)
Returns the low-value for the specified series and item. |
double |
getLowValue(int series,
int item)
Returns the low-value (as a double primitive) for an item within a series. |
int[] |
getMap()
Returns a map or indirect indexing form our series into parent's series. |
java.lang.Number |
getOpen(int series,
int item)
Returns the open-value for the specified series and item. |
double |
getOpenValue(int series,
int item)
Returns the open-value (as a double primitive) for an item within a 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 |
getStartX(int series,
int item)
Returns the starting X value for the specified series and item. |
java.lang.Number |
getStartY(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 |
getVolume(int series,
int item)
Returns the volume. |
double |
getVolumeValue(int series,
int item)
Returns the volume-value (as a double primitive) for an item within a series. |
java.lang.Number |
getX(int series,
int item)
Returns the X-value for the specified series and item. |
java.lang.Number |
getY(int series,
int item)
Returns the Y-value for the specified series and item. |
| Methods inherited from class org.jfree.data.xy.AbstractIntervalXYDataset |
|---|
getEndXValue, getEndYValue, getStartXValue, getStartYValue |
| Methods inherited from class org.jfree.data.xy.AbstractXYDataset |
|---|
getDomainOrder, getXValue, getYValue |
| Methods inherited from class org.jfree.data.general.AbstractSeriesDataset |
|---|
seriesChanged |
| Methods inherited from class org.jfree.data.general.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.xy.IntervalXYDataset |
|---|
getEndXValue, getEndYValue, getStartXValue, getStartYValue |
| Methods inherited from interface org.jfree.data.xy.XYDataset |
|---|
getDomainOrder, getXValue, getYValue |
| Methods inherited from interface org.jfree.data.general.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 getHigh(int series,
int item)
Note: throws ClassCastException if the series if 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 if 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 if 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 if 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 if not from a
OHLCDataset.
getVolume in interface OHLCDatasetseries - the series (zero based index).item - the item (zero based index).
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 getX(int series,
int item)
Note: throws ClassCastException if the series if not from a
XYDataset.
getX 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 getY(int series,
int item)
Note: throws ClassCastException if the series if not from a
XYDataset.
getY 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 if not from a
XYDataset.
getItemCount in interface XYDatasetseries - the index of the series of interest (zero-based).
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 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 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 | ||||||||