Class OHLCDataSetCollection
java.lang.Object
org.jfree.data.general.AbstractDataset
com.illumon.iris.db.plot.datasets.AbstractDataSetCollection<T>
com.illumon.iris.db.plot.datasets.xy.AbstractXYDataSetCollection<OHLCDataSeriesInternal>
com.illumon.iris.db.plot.datasets.ohlc.OHLCDataSetCollection
- All Implemented Interfaces:
DataSetCollection<OHLCDataSeriesInternal>
,XYRangedDataSetCollection<OHLCDataSeriesInternal>
,PlotExceptionCause
,DataChangeListener
,ObjectInputValidation
,Serializable
,Cloneable
,org.jfree.data.general.Dataset
,org.jfree.data.general.SeriesDataset
,org.jfree.data.xy.OHLCDataset
,org.jfree.data.xy.XYDataset
- Direct Known Subclasses:
TransformedOHLCDataSetCollection
public class OHLCDataSetCollection extends AbstractXYDataSetCollection<OHLCDataSeriesInternal> implements org.jfree.data.xy.OHLCDataset
Collection of
OHLCDataSeriesInternal
.- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.db.plot.datasets.AbstractDataSetCollection
AbstractDataSetCollection.FireDatasetChangeListener
-
Field Summary
-
Constructor Summary
Constructors Constructor Description OHLCDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, PlotInfo plotInfo, boolean notifyDataChanged)
Creates an OHLCDataSetCollection instance. -
Method Summary
Modifier and Type Method Description OHLCDataSetCollection
createNewSnapshot(LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, PlotInfo plotInfo, boolean notifyDataChanged)
Number
getClose(int series, int item)
double
getCloseValue(int series, int item)
Number
getHigh(int series, int item)
double
getHighValue(int series, int item)
Number
getLow(int series, int item)
double
getLowValue(int series, int item)
Number
getOpen(int series, int item)
double
getOpenValue(int series, int item)
Number
getVolume(int series, int item)
double
getVolumeValue(int series, int item)
Methods inherited from class com.illumon.iris.db.plot.datasets.xy.AbstractXYDataSetCollection
constructSnapshot, getCurrentSnapshot, getDomainOrder, getItemCount, getSeriesCount, getSeriesKey, getX, getXValue, getY, getYValue, indexOf, seriesChanged
Methods inherited from class com.illumon.iris.db.plot.datasets.AbstractDataSetCollection
add, add, addFireDatasetChangeListener, addMultiSeries, addSeries, axes, dimension, fireDatasetChanged, get, getAllSeries, getDynamicSeriesNamer, getGovernor, getPlotInfo, getSeriesNames, id, isNotifyDataChanged, multiSeries, notifyDataChanged, notifyDataChanged, notifySeriesChanged, reindexSeriesSync, remove, removeFireDatasetChangeListener, series, setSnapshotsEnabled, testIfSwingDispatchThreadIfNotTestMode
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.plot.util.tables.DataChangeListener
notifyDataChanged, notifyDataChanged, notifySeriesChanged, onFailed, onOneClick, onOneClickRemoved, removeOnOneClick
Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
Methods inherited from interface com.illumon.iris.db.plot.datasets.DataSetCollection
add, add, axes, dimension, get, getAllSeries, id, multiSeries, remove, series
Methods inherited from interface org.jfree.data.general.SeriesDataset
getSeriesCount, getSeriesKey, indexOf
Methods inherited from interface org.jfree.data.xy.XYDataset
getDomainOrder, getItemCount, getX, getXValue, getY, getYValue
Methods inherited from interface com.illumon.iris.db.plot.datasets.XYRangedDataSetCollection
getXRange
-
Constructor Details
-
OHLCDataSetCollection
public OHLCDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, PlotInfo plotInfo, boolean notifyDataChanged)Creates an OHLCDataSetCollection instance.- Parameters:
axes
- corresponding axes for datasetcollectiongovernor
- update throttledynamicSeriesNamer
- utility to name dynamically generated seriesnotifyDataChanged
- whether to fire dataset changed events
-
-
Method Details
-
createNewSnapshot
public OHLCDataSetCollection createNewSnapshot(LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, PlotInfo plotInfo, boolean notifyDataChanged)- Specified by:
createNewSnapshot
in classAbstractXYDataSetCollection<OHLCDataSeriesInternal>
-
getHigh
- Specified by:
getHigh
in interfaceorg.jfree.data.xy.OHLCDataset
-
getHighValue
public double getHighValue(int series, int item)- Specified by:
getHighValue
in interfaceorg.jfree.data.xy.OHLCDataset
-
getLow
- Specified by:
getLow
in interfaceorg.jfree.data.xy.OHLCDataset
-
getLowValue
public double getLowValue(int series, int item)- Specified by:
getLowValue
in interfaceorg.jfree.data.xy.OHLCDataset
-
getOpen
- Specified by:
getOpen
in interfaceorg.jfree.data.xy.OHLCDataset
-
getOpenValue
public double getOpenValue(int series, int item)- Specified by:
getOpenValue
in interfaceorg.jfree.data.xy.OHLCDataset
-
getClose
- Specified by:
getClose
in interfaceorg.jfree.data.xy.OHLCDataset
-
getCloseValue
public double getCloseValue(int series, int item)- Specified by:
getCloseValue
in interfaceorg.jfree.data.xy.OHLCDataset
-
getVolume
- Specified by:
getVolume
in interfaceorg.jfree.data.xy.OHLCDataset
-
getVolumeValue
public double getVolumeValue(int series, int item)- Specified by:
getVolumeValue
in interfaceorg.jfree.data.xy.OHLCDataset
-