Package org.jfree.data
Interface HighLowDataset
- All Superinterfaces:
Dataset,SeriesDataset,XYDataset
- All Known Implementing Classes:
CombinedDataset,DefaultHighLowDataset,OHLCDataset,SubSeriesDataset
public interface HighLowDataset extends XYDataset
An interface that defines data in the form of (x, high, low, open, close)
tuples.
Example: JFreeChart used this interface to obtain data for high-low-open-close plots.
-
Method Summary
Modifier and Type Method Description doublegetClose(int series, int item)Returns the close-value (as a double primitive) for an item within a series.NumbergetCloseValue(int series, int item)Returns the y-value for the specified series and item.doublegetHigh(int series, int item)Returns the high-value (as a double primitive) for an item within a series.NumbergetHighValue(int series, int item)Returns the high-value for the specified series and item.doublegetLow(int series, int item)Returns the low-value (as a double primitive) for an item within a series.NumbergetLowValue(int series, int item)Returns the low-value for the specified series and item.doublegetOpen(int series, int item)Returns the open-value (as a double primitive) for an item within a series.NumbergetOpenValue(int series, int item)Returns the open-value for the specified series and item.doublegetVolume(int series, int item)Returns the volume-value (as a double primitive) for an item within a series.NumbergetVolumeValue(int series, int item)Returns the volume for the specified series and item.Methods inherited from interface org.jfree.data.Dataset
addChangeListener, getGroup, removeChangeListener, setGroupMethods inherited from interface org.jfree.data.SeriesDataset
getSeriesCount, getSeriesName
-
Method Details
-
getHighValue
Returns the high-value for the specified series and item.- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The value.
-
getHigh
double getHigh(int series, int item)Returns the high-value (as a double primitive) for an item within a series.- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The high-value.
-
getLowValue
Returns the low-value for the specified series and item.- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The value.
-
getLow
double getLow(int series, int item)Returns the low-value (as a double primitive) for an item within a series.- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The low-value.
-
getOpenValue
Returns the open-value for the specified series and item.- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The value.
-
getOpen
double getOpen(int series, int item)Returns the open-value (as a double primitive) for an item within a series.- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The open-value.
-
getCloseValue
Returns the y-value for the specified series and item.- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The value.
-
getClose
double getClose(int series, int item)Returns the close-value (as a double primitive) for an item within a series.- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The close-value.
-
getVolumeValue
Returns the volume for the specified series and item.- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The value.
-
getVolume
double getVolume(int series, int item)Returns the volume-value (as a double primitive) for an item within a series.- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The volume-value.
-