org.jfree.data.time.ohlc
public class OHLCSeriesCollection extends AbstractXYDataset implements OHLCDataset, Serializable
Constructor 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.
|
Object | clone()
Returns a clone of this instance.
|
boolean | equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
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.
|
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.
|
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.
|
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.
|
Comparable | getSeriesKey(int series)
Returns the key for a series.
|
Number | getVolume(int series, int item) |
double | getVolumeValue(int series, int item) |
protected long | getX(RegularTimePeriod period)
Returns the x-value for a time period.
|
Number | getX(int series, int item)
Returns the x-value for an item within a series.
|
double | getXValue(int series, int item)
Returns the x-value for an item within a series.
|
Number | getY(int series, int item)
Returns the y-value for an item within a series.
|
OHLCSeriesCollection
.Parameters: series the series (null
not permitted).
Returns: A clone.
Throws: CloneNotSupportedException if there is a problem.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Parameters: series the series index. item the item index.
Returns: The close-value.
Parameters: series the series index. item the item index.
Returns: The close-value.
Parameters: series the series index. item the item index.
Returns: The high-value.
Parameters: series the series index. item the item index.
Returns: The high-value.
Parameters: series the series (zero-based index).
Returns: The item count.
Throws: IllegalArgumentException if series
is not in the
range 0
to getSeriesCount() - 1
.
Parameters: series the series index. item the item index.
Returns: The low-value.
Parameters: series the series index. item the item index.
Returns: The low-value.
Parameters: series the series index. item the item index.
Returns: The open-value.
Parameters: series the series index. item the item index.
Returns: The open-value.
Parameters: series the series index (zero-based).
Returns: The series.
Throws: IllegalArgumentException if series
is not in the
range 0
to getSeriesCount() - 1
.
Returns: The series count.
Parameters: series the series index (in the range 0
to
getSeriesCount() - 1
).
Returns: The key for a series.
Throws: IllegalArgumentException if series
is not in the
specified range.
Parameters: period the time period (null
not permitted).
Returns: The x-value.
Parameters: series the series index. item the item index.
Returns: The x-value.
Parameters: series the series index. item the item index.
Returns: The x-value.
Parameters: series the series index. item the item index.
Returns: The y-value.