| org.jfree.data.xy.AbstractXYDataset org.jfree.data.xy.DefaultHighLowDataset
Constructor Summary | |
public | DefaultHighLowDataset(Comparable seriesKey, Date[] date, double[] high, double[] low, double[] open, double[] close, double[] volume) Constructs a new high/low/open/close dataset. |
Method Summary | |
public static Number[] | createNumberArray(double[] data) Constructs an array of Number objects from an array of doubles.
Parameters: data - the double values to convert (null not permitted). | public boolean | equals(Object obj) Tests this dataset for equality with an arbitrary instance.
Parameters: obj - the object (null permitted). | public Number | getClose(int series, int item) Returns the close-value for one item in a series.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). | public double | getCloseValue(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). Parameters: item - the item (zero-based index). | public Number | getHigh(int series, int item) Returns the high-value for one item in a series.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). | public double | getHighValue(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). Parameters: item - the item (zero-based index). | public int | getItemCount(int series) Returns the number of items in the specified series.
Parameters: series - the index (zero-based) of the series. | public Number | getLow(int series, int item) Returns the low-value for one item in a series.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). | public double | getLowValue(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). Parameters: item - the item (zero-based index). | public Number | getOpen(int series, int item) Returns the open-value for one item in a series.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). | public double | getOpenValue(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). Parameters: item - the item (zero-based index). | public int | getSeriesCount() Returns the number of series in the dataset. | public Comparable | getSeriesKey(int series) Returns the key for the series stored in this dataset.
Parameters: series - the index of the series (ignored, this dataset supports only one series and this method always returns the key for series 0). | public Number | getVolume(int series, int item) Returns the volume-value for one item in a series.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). | public double | getVolumeValue(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). Parameters: item - the item (zero-based index). | public Number | getX(int series, int item) Returns the x-value for one item in a series. | public Date | getXDate(int series, int item) Returns the x-value for one item in a series, as a Date.
This method is provided for convenience only.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). | public Number | getY(int series, int item) Returns the y-value for one item in a series.
This method (from the
XYDataset interface) is mapped to the
DefaultHighLowDataset.getCloseValue(int,int) method.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). |
DefaultHighLowDataset | public DefaultHighLowDataset(Comparable seriesKey, Date[] date, double[] high, double[] low, double[] open, double[] close, double[] volume)(Code) | | Constructs a new high/low/open/close dataset.
The current implementation allows only one series in the dataset.
This may be extended in a future version.
Parameters: seriesKey - the key for the series (null not permitted). Parameters: date - the dates (null not permitted). Parameters: high - the high values (null not permitted). Parameters: low - the low values (null not permitted). Parameters: open - the open values (null not permitted). Parameters: close - the close values (null not permitted). Parameters: volume - the volume values (null not permitted). |
createNumberArray | public static Number[] createNumberArray(double[] data)(Code) | | Constructs an array of Number objects from an array of doubles.
Parameters: data - the double values to convert (null not permitted). The data as an array of Number objects. |
equals | public boolean equals(Object obj)(Code) | | Tests this dataset for equality with an arbitrary instance.
Parameters: obj - the object (null permitted). A boolean. |
getCloseValue | public double getCloseValue(int series, int item)(Code) | | Returns the close-value (as a double primitive) for an item within a
series.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The close-value. See Also: DefaultHighLowDataset.getClose(int,int) |
getHighValue | public double getHighValue(int series, int item)(Code) | | Returns the high-value (as a double primitive) for an item within a
series.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The high-value. See Also: DefaultHighLowDataset.getHigh(int,int) |
getItemCount | public int getItemCount(int series)(Code) | | Returns the number of items in the specified series.
Parameters: series - the index (zero-based) of the series. The number of items in the specified series. |
getLowValue | public double getLowValue(int series, int item)(Code) | | Returns the low-value (as a double primitive) for an item within a
series.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The low-value. See Also: DefaultHighLowDataset.getLow(int,int) |
getOpenValue | public double getOpenValue(int series, int item)(Code) | | Returns the open-value (as a double primitive) for an item within a
series.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The open-value. See Also: DefaultHighLowDataset.getOpen(int,int) |
getSeriesCount | public int getSeriesCount()(Code) | | Returns the number of series in the dataset.
This implementation only allows one series.
The number of series. |
getSeriesKey | public Comparable getSeriesKey(int series)(Code) | | Returns the key for the series stored in this dataset.
Parameters: series - the index of the series (ignored, this dataset supports only one series and this method always returns the key for series 0). The series key (never null ). |
getVolumeValue | public double getVolumeValue(int series, int item)(Code) | | Returns the volume-value (as a double primitive) for an item within a
series.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The volume-value. See Also: DefaultHighLowDataset.getVolume(int,int) |
getXDate | public Date getXDate(int series, int item)(Code) | | Returns the x-value for one item in a series, as a Date.
This method is provided for convenience only.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The x-value as a Date. See Also: DefaultHighLowDataset.getX(int,int) |
|
|