|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.data.general.AbstractDataset org.jfree.data.general.AbstractSeriesDataset org.jfree.data.xy.AbstractXYDataset org.jfree.data.time.ohlc.OHLCSeriesCollection
public class OHLCSeriesCollection
A collection of OHLCSeries
objects.
OHLCSeries
,
Serialized FormConstructor Summary | |
---|---|
OHLCSeriesCollection()
Creates a new instance of OHLCSeriesCollection . |
Method Summary | |
---|---|
void |
addSeries(OHLCSeries series)
Adds a series to the collection and sends a DatasetChangeEvent
to all registered listeners. |
java.lang.Object |
clone()
Returns a clone of this instance. |
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object. |
java.lang.Number |
getClose(int series,
int item)
Returns the close-value for an item within a series. |
double |
getCloseValue(int series,
int item)
Returns the close-value for an item within a series. |
java.lang.Number |
getHigh(int series,
int item)
Returns the high-value for an item within a series. |
double |
getHighValue(int series,
int item)
Returns the high-value for an item within a series. |
int |
getItemCount(int series)
Returns the number of items in the specified series. |
java.lang.Number |
getLow(int series,
int item)
Returns the low-value for an item within a series. |
double |
getLowValue(int series,
int item)
Returns the low-value for an item within a series. |
java.lang.Number |
getOpen(int series,
int item)
Returns the open-value for an item within a series. |
double |
getOpenValue(int series,
int item)
Returns the open-value for an item within a series. |
OHLCSeries |
getSeries(int series)
Returns a series from the collection. |
int |
getSeriesCount()
Returns the number of series in the collection. |
java.lang.Comparable |
getSeriesKey(int series)
Returns the key for a series. |
java.lang.Number |
getVolume(int series,
int item)
Returns null always, because this dataset doesn't record
any volume data. |
double |
getVolumeValue(int series,
int item)
Returns Double.NaN always, because this dataset doesn't
record any volume data. |
java.lang.Number |
getX(int series,
int item)
Returns the x-value for an item within a series. |
protected long |
getX(RegularTimePeriod period)
Returns the x-value for a time period. |
TimePeriodAnchor |
getXPosition()
Returns the position within each time period that is used for the X value when the collection is used as an XYDataset . |
double |
getXValue(int series,
int item)
Returns the x-value for an item within a series. |
java.lang.Number |
getY(int series,
int item)
Returns the y-value for an item within a series. |
void |
setXPosition(TimePeriodAnchor anchor)
Sets the position within each time period that is used for the X values when the collection is used as an XYDataset , then sends a
DatasetChangeEvent is sent to all registered listeners. |
Methods inherited from class org.jfree.data.xy.AbstractXYDataset |
---|
getDomainOrder, getYValue |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset |
---|
indexOf, seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset |
---|
addChangeListener, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.xy.XYDataset |
---|
getDomainOrder, getYValue |
Methods inherited from interface org.jfree.data.general.SeriesDataset |
---|
indexOf |
Methods inherited from interface org.jfree.data.general.Dataset |
---|
addChangeListener, getGroup, removeChangeListener, setGroup |
Constructor Detail |
---|
public OHLCSeriesCollection()
OHLCSeriesCollection
.
Method Detail |
---|
public TimePeriodAnchor getXPosition()
XYDataset
.
null
).public void setXPosition(TimePeriodAnchor anchor)
XYDataset
, then sends a
DatasetChangeEvent
is sent to all registered listeners.
anchor
- the anchor position (null
not permitted).public void addSeries(OHLCSeries series)
DatasetChangeEvent
to all registered listeners.
series
- the series (null
not permitted).public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public OHLCSeries getSeries(int series)
series
- the series index (zero-based).
java.lang.IllegalArgumentException
- if series
is not in the
range 0
to getSeriesCount() - 1
.public java.lang.Comparable getSeriesKey(int series)
getSeriesKey
in interface SeriesDataset
getSeriesKey
in class AbstractSeriesDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).
java.lang.IllegalArgumentException
- if series
is not in the
specified range.public int getItemCount(int series)
getItemCount
in interface XYDataset
series
- the series (zero-based index).
java.lang.IllegalArgumentException
- if series
is not in the
range 0
to getSeriesCount() - 1
.protected long getX(RegularTimePeriod period)
period
- the time period (null
not permitted).
public double getXValue(int series, int item)
getXValue
in interface XYDataset
getXValue
in class AbstractXYDataset
series
- the series index.item
- the item index.
public java.lang.Number getX(int series, int item)
getX
in interface XYDataset
series
- the series index.item
- the item index.
public java.lang.Number getY(int series, int item)
getY
in interface XYDataset
series
- the series index.item
- the item index.
public double getOpenValue(int series, int item)
getOpenValue
in interface OHLCDataset
series
- the series index.item
- the item index.
public java.lang.Number getOpen(int series, int item)
getOpen
in interface OHLCDataset
series
- the series index.item
- the item index.
public double getCloseValue(int series, int item)
getCloseValue
in interface OHLCDataset
series
- the series index.item
- the item index.
public java.lang.Number getClose(int series, int item)
getClose
in interface OHLCDataset
series
- the series index.item
- the item index.
public double getHighValue(int series, int item)
getHighValue
in interface OHLCDataset
series
- the series index.item
- the item index.
public java.lang.Number getHigh(int series, int item)
getHigh
in interface OHLCDataset
series
- the series index.item
- the item index.
public double getLowValue(int series, int item)
getLowValue
in interface OHLCDataset
series
- the series index.item
- the item index.
public java.lang.Number getLow(int series, int item)
getLow
in interface OHLCDataset
series
- the series index.item
- the item index.
public java.lang.Number getVolume(int series, int item)
null
always, because this dataset doesn't record
any volume data.
getVolume
in interface OHLCDataset
series
- the series index (ignored).item
- the item index (ignored).
null
.public double getVolumeValue(int series, int item)
Double.NaN
always, because this dataset doesn't
record any volume data.
getVolumeValue
in interface OHLCDataset
series
- the series index (ignored).item
- the item index (ignored).
Double.NaN
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractDataset
java.lang.CloneNotSupportedException
- if there is a problem.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |