Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.xy.AbstractXYDataset
org.jfree.data.time.ohlc.OHLCSeriesCollection
OHLCSeries
objects.
OHLCSeries
Constructor Summary | |
|
Method Summary | |
void |
|
Object |
|
boolean |
|
Number |
|
double |
|
Number |
|
double |
|
int |
|
Number |
|
double |
|
Number |
|
double |
|
OHLCSeries |
|
int |
|
Comparable |
|
Number |
|
double |
|
Number |
|
protected long |
|
double |
|
Number |
|
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 void addSeries(OHLCSeries series)
Adds a series to the collection and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
series
- the series (null
not permitted).
public Object clone() throws CloneNotSupportedException
Returns a clone of this instance.
- Overrides:
- clone in interface AbstractDataset
- Returns:
- A clone.
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
- Parameters:
obj
- the object (null
permitted).
- Returns:
- A boolean.
public Number getClose(int series, int item)
Returns the close-value for an item within a series.
- Specified by:
- getClose in interface OHLCDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The close-value.
public double getCloseValue(int series, int item)
Returns the close-value for an item within a series.
- Specified by:
- getCloseValue in interface OHLCDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The close-value.
public Number getHigh(int series, int item)
Returns the high-value for an item within a series.
- Specified by:
- getHigh in interface OHLCDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The high-value.
public double getHighValue(int series, int item)
Returns the high-value for an item within a series.
- Specified by:
- getHighValue in interface OHLCDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The high-value.
public int getItemCount(int series)
Returns the number of items in the specified series.
- Specified by:
- getItemCount in interface XYDataset
- Parameters:
series
- the series (zero-based index).
- Returns:
- The item count.
public Number getLow(int series, int item)
Returns the low-value for an item within a series.
- Specified by:
- getLow in interface OHLCDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The low-value.
public double getLowValue(int series, int item)
Returns the low-value for an item within a series.
- Specified by:
- getLowValue in interface OHLCDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The low-value.
public Number getOpen(int series, int item)
Returns the open-value for an item within a series.
- Specified by:
- getOpen in interface OHLCDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The open-value.
public double getOpenValue(int series, int item)
Returns the open-value for an item within a series.
- Specified by:
- getOpenValue in interface OHLCDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The open-value.
public OHLCSeries getSeries(int series)
Returns a series from the collection.
- Parameters:
series
- the series index (zero-based).
- Returns:
- The series.
public int getSeriesCount()
Returns the number of series in the collection.
- Specified by:
- getSeriesCount in interface SeriesDataset
- Overrides:
- getSeriesCount in interface AbstractSeriesDataset
- Returns:
- The series count.
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 index (in the range0
togetSeriesCount() - 1
).
- Returns:
- The key for a series.
public Number getVolume(int series, int item)
Returns the volume for the specified series and item.
- Specified by:
- getVolume in interface OHLCDataset
- Parameters:
series
- the series (zero-based index).item
- the item (zero-based index).
- Returns:
- The value.
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 an item within a series.
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The x-value.
protected long getX(RegularTimePeriod period)
Returns the x-value for a time period.
- Parameters:
period
- the time period (null
not permitted).
- Returns:
- The x-value.
public double getXValue(int series, int item)
Returns the x-value for an item within a series.
- Overrides:
- getXValue in interface AbstractXYDataset
- Parameters:
series
- the series index.item
- the item index.
- Returns:
- The x-value.