| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectpublic class SubSeriesDatasetextends AbstractIntervalXYDatasetimplements OHLCDataset, IntervalXYDataset, CombinationDatasetSeriesDataset.
Constructor Summary | |
| |
| |
Method Summary | |
Number |
|
double |
|
Number |
|
Number |
|
Number |
|
double |
|
int |
|
Number |
|
double |
|
int[] |
|
Number |
|
double |
|
SeriesDataset |
|
int |
|
Comparable |
|
Number |
|
Number |
|
Number |
|
double |
|
Number |
|
Number |
|
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 | |
getSeriesCount, getSeriesKey, indexOf, seriesChanged | |
Methods inherited from class org.jfree.data.general.AbstractDataset | |
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject | |
public SubSeriesDataset(SeriesDataset parent, int series)
Creates a SubSeriesDataset using one series fromparent. The series to is passed as an int.
- Parameters:
parent- underlying datasetseries- series from parent to include in this Dataset
public SubSeriesDataset(SeriesDataset parent, int[] map)
Creates a SubSeriesDataset using one or more series fromparent. The series to use are passed as an array of int.
- Parameters:
parent- underlying datasetmap- int[] of series from parent to include in this Dataset
public Number getClose(int series, int item)
Returns the close-value for the specified series and item. Note: throwsClassCastExceptionif the series if not from aOHLCDataset.
- Specified by:
- getClose in interface OHLCDataset
- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).
- Returns:
- The close-value for the specified series and item.
public double getCloseValue(int series, int item)
Returns the close-value (as a double primitive) for an item within a series.
- Specified by:
- getCloseValue in interface OHLCDataset
- Parameters:
series- the series (zero-based index).item- the item (zero-based index).
- Returns:
- The close-value.
public Number getEndX(int series, int item)
Returns the ending X value for the specified series and item.
- Specified by:
- getEndX in interface IntervalXYDataset
- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).
- Returns:
- The ending X value for the specified series and item.
public Number getEndY(int series, int item)
Returns the ending Y value for the specified series and item.
- Specified by:
- getEndY in interface IntervalXYDataset
- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).
- Returns:
- The ending Y value for the specified series and item.
public Number getHigh(int series, int item)
Returns the high-value for the specified series and item. Note: throwsClassCastExceptionif the series if not from aOHLCDataset.
- Specified by:
- getHigh in interface OHLCDataset
- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).
- Returns:
- The high-value for the specified series and item.
public double getHighValue(int series, int item)
Returns the high-value (as a double primitive) for an item within a series.
- Specified by:
- getHighValue in interface OHLCDataset
- Parameters:
series- the series (zero-based index).item- the item (zero-based index).
- Returns:
- The high-value.
public int getItemCount(int series)
Returns the number of items in a series. Note: throwsClassCastExceptionif the series if not from aXYDataset.
- Specified by:
- getItemCount in interface XYDataset
- Parameters:
series- the index of the series of interest (zero-based).
- Returns:
- The number of items in a series.
public Number getLow(int series, int item)
Returns the low-value for the specified series and item. Note: throwsClassCastExceptionif the series if not from aOHLCDataset.
- Specified by:
- getLow in interface OHLCDataset
- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).
- Returns:
- The low-value for the specified series and item.
public double getLowValue(int series, int item)
Returns the low-value (as a double primitive) for an item within a series.
- Specified by:
- getLowValue in interface OHLCDataset
- Parameters:
series- the series (zero-based index).item- the item (zero-based index).
- Returns:
- The low-value.
public int[] getMap()
Returns a map or indirect indexing form our series into parent's series.
- Specified by:
- getMap in interface CombinationDataset
- Returns:
- A map or indirect indexing form our series into parent's series.
public Number getOpen(int series, int item)
Returns the open-value for the specified series and item. Note: throwsClassCastExceptionif the series if not from aOHLCDataset.
- Specified by:
- getOpen in interface OHLCDataset
- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).
- Returns:
- The open-value for the specified series and item.
public double getOpenValue(int series, int item)
Returns the open-value (as a double primitive) for an item within a series.
- Specified by:
- getOpenValue in interface OHLCDataset
- Parameters:
series- the series (zero-based index).item- the item (zero-based index).
- Returns:
- The open-value.
public SeriesDataset getParent()
Returns the parent Dataset of this combination.
- Specified by:
- getParent in interface CombinationDataset
- Returns:
- The parent Dataset of this combination.
public int getSeriesCount()
Returns the number of series in the dataset.
- Specified by:
- getSeriesCount in interface SeriesDataset
- Overrides:
- getSeriesCount in interface AbstractSeriesDataset
- Returns:
- The number of series in the dataset.
public Comparable getSeriesKey(int series)
Returns the key for a series.
- Specified by:
- getSeriesKey in interface SeriesDataset
- Overrides:
- getSeriesKey in interface AbstractSeriesDataset
- Parameters:
series- the series (zero-based index).
- Returns:
- The name of a series.
public Number getStartX(int series, int item)
Returns the starting X value for the specified series and item.
- Specified by:
- getStartX in interface IntervalXYDataset
- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).
- Returns:
- The starting X value for the specified series and item.
public Number getStartY(int series, int item)
Returns the starting Y value for the specified series and item.
- Specified by:
- getStartY in interface IntervalXYDataset
- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).
- Returns:
- The starting Y value for the specified series and item.
public Number getVolume(int series, int item)
Returns the volume. Note: throwsClassCastExceptionif the series if not from aOHLCDataset.
- Specified by:
- getVolume in interface OHLCDataset
- Parameters:
series- the series (zero based index).item- the item (zero based index).
- Returns:
- The volume.
public double getVolumeValue(int series, int item)
Returns the volume-value (as a double primitive) for an item within a series.
- Specified by:
- getVolumeValue in interface OHLCDataset
- Parameters:
series- the series (zero-based index).item- the item (zero-based index).
- Returns:
- The volume-value.
public Number getX(int series, int item)
Returns the X-value for the specified series and item. Note: throwsClassCastExceptionif the series if not from aXYDataset.
- Parameters:
series- the index of the series of interest (zero-based);item- the index of the item of interest (zero-based).
- Returns:
- The X-value for the specified series and item.
public Number getY(int series, int item)
Returns the Y-value for the specified series and item. Note: throwsClassCastExceptionif the series if not from aXYDataset.
- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).
- Returns:
- The Y-value for the specified series and item.