com.jrefinery.data
Interface HighLowDataset

All Superinterfaces:
Dataset, SeriesDataset, XYDataset
All Known Implementing Classes:
CombinedDataset, DefaultHighLowDataset, 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
 java.lang.Number getCloseValue(int series, int item)
          Returns the 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.
 java.lang.Number getLowValue(int series, int item)
          Returns the low-value for the specified series and item.
 java.lang.Number getOpenValue(int series, int item)
          Returns the open-value for the specified series and item.
 java.lang.Number getVolumeValue(int series, int item)
          Returns the volume for the specified series and item.
 
Methods inherited from interface com.jrefinery.data.XYDataset
getItemCount, getXValue, getYValue
 
Methods inherited from interface com.jrefinery.data.SeriesDataset
getSeriesCount, getSeriesName
 
Methods inherited from interface com.jrefinery.data.Dataset
addChangeListener, removeChangeListener
 

Method Detail

getHighValue

java.lang.Number getHighValue(int series,
                              int item)
Returns the high-value for the specified series and item.

Parameters:
series - The series (zero-based index).
item - The item (zero-based index).

getLowValue

java.lang.Number getLowValue(int series,
                             int item)
Returns the low-value for the specified series and item.

Parameters:
series - The series (zero-based index).
item - The item (zero-based index).

getOpenValue

java.lang.Number getOpenValue(int series,
                              int item)
Returns the open-value for the specified series and item.

Parameters:
series - The series (zero-based index).
item - The item (zero-based index).

getCloseValue

java.lang.Number getCloseValue(int series,
                               int item)
Returns the y-value for the specified series and item.

Parameters:
series - The series (zero-based index).
item - The item (zero-based index).

getVolumeValue

java.lang.Number getVolumeValue(int series,
                                int item)
Returns the volume for the specified series and item.

Parameters:
series - The series (zero-based index).
item - The item (zero-based index).


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.