| java.lang.Object | ||||
| ↳ | org.jfree.data.general.AbstractDataset | |||
| ↳ | org.jfree.data.general.AbstractSeriesDataset | |||
| ↳ | org.jfree.data.xy.AbstractXYDataset | |||
| ↳ | org.jfree.data.xy.DefaultHighLowDataset | |||
A simple implementation of the OHLCDataset interface. See also
the DefaultOHLCDataset class, which provides another implementation
that is very similar.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new high/low/open/close dataset.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an array of Number objects from an array of doubles.
| |||||||||||
Tests this dataset for equality with an arbitrary instance.
| |||||||||||
Returns the close-value for one item in a series.
| |||||||||||
Returns the close-value (as a double primitive) for an item within a
series.
| |||||||||||
Returns the high-value for one item in a series.
| |||||||||||
Returns the high-value (as a double primitive) for an item within a
series.
| |||||||||||
Returns the number of items in the specified series.
| |||||||||||
Returns the low-value for one item in a series.
| |||||||||||
Returns the low-value (as a double primitive) for an item within a
series.
| |||||||||||
Returns the open-value for one item in a series.
| |||||||||||
Returns the open-value (as a double primitive) for an item within a
series.
| |||||||||||
Returns the number of series in the dataset.
| |||||||||||
Returns the key for the series stored in this dataset.
| |||||||||||
Returns the volume-value for one item in a series.
| |||||||||||
Returns the volume-value (as a double primitive) for an item within a
series.
| |||||||||||
Returns the x-value for one item in a series.
| |||||||||||
Returns the x-value for one item in a series, as a Date.
| |||||||||||
Returns the y-value for one item in a series.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.jfree.data.xy.AbstractXYDataset
| |||||||||||
From class
org.jfree.data.general.AbstractSeriesDataset
| |||||||||||
From class
org.jfree.data.general.AbstractDataset
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.ObjectInputValidation
| |||||||||||
From interface
org.jfree.data.general.Dataset
| |||||||||||
From interface
org.jfree.data.general.SeriesChangeListener
| |||||||||||
From interface
org.jfree.data.general.SeriesDataset
| |||||||||||
From interface
org.jfree.data.xy.OHLCDataset
| |||||||||||
From interface
org.jfree.data.xy.XYDataset
| |||||||||||
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.
| seriesKey | the key for the series (null not
permitted). |
|---|---|
| date | the dates (null not permitted). |
| high | the high values (null not permitted). |
| low | the low values (null not permitted). |
| open | the open values (null not permitted). |
| close | the close values (null not permitted). |
| volume | the volume values (null not permitted).
|
Constructs an array of Number objects from an array of doubles.
| data | the double values to convert (null not
permitted). |
|---|
Tests this dataset for equality with an arbitrary instance.
| obj | the object (null permitted). |
|---|
Returns the close-value for one item in a series.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the close-value (as a double primitive) for an item within a series.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the high-value for one item in a series.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the high-value (as a double primitive) for an item within a series.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the number of items in the specified series.
| series | the index (zero-based) of the series. |
|---|
Returns the low-value for one item in a series.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the low-value (as a double primitive) for an item within a series.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the open-value for one item in a series.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the open-value (as a double primitive) for an item within a series.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the number of series in the dataset.
This implementation only allows one series.
Returns the key for the series stored in this dataset.
| series | the index of the series (ignored, this dataset supports only one series and this method always returns the key for series 0). |
|---|
null).
Returns the volume-value for one item in a series.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the volume-value (as a double primitive) for an item within a series.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the x-value for one item in a series. The value returned is a
Long instance generated from the underlying
Date object. To avoid generating a new object instance,
you might prefer to call getXValue(int, int).
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the x-value for one item in a series, as a Date.
This method is provided for convenience only.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |
Returns the y-value for one item in a series.
This method (from the XYDataset interface) is mapped to the
getCloseValue(int, int) method.
| series | the series (zero-based index). |
|---|---|
| item | the item (zero-based index). |