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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.db.plot.datasets.AbstractDataSetCollection
AbstractDataSetCollection.FireDatasetChangeListener -
Field Summary
Fields inherited from class com.illumon.iris.db.plot.datasets.xy.AbstractXYDataSetCollection
logger -
Constructor Summary
ConstructorsConstructorDescriptionOHLCDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, PlotInfo plotInfo, boolean notifyDataChanged) Creates an OHLCDataSetCollection instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateNewSnapshot(LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, PlotInfo plotInfo, boolean notifyDataChanged) getClose(int series, int item) doublegetCloseValue(int series, int item) getHigh(int series, int item) doublegetHighValue(int series, int item) getLow(int series, int item) doublegetLowValue(int series, int item) getOpen(int series, int item) doublegetOpenValue(int series, int item) getVolume(int series, int item) doublegetVolumeValue(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, seriesChangedMethods 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, testIfSwingDispatchThreadIfNotTestModeMethods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.plot.util.tables.DataChangeListener
notifyDataChanged, notifyDataChanged, notifySeriesChanged, onFailed, onOneClick, onOneClickRemoved, removeOnOneClickMethods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroupMethods inherited from interface com.illumon.iris.db.plot.datasets.DataSetCollection
add, add, axes, dimension, get, getAllSeries, id, multiSeries, remove, seriesMethods inherited from interface com.illumon.iris.db.plot.errors.PlotExceptionCause
getPlotInfoMethods inherited from interface org.jfree.data.general.SeriesDataset
getSeriesCount, getSeriesKey, indexOfMethods inherited from interface org.jfree.data.xy.XYDataset
getDomainOrder, getItemCount, getX, getXValue, getY, getYValueMethods 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:
createNewSnapshotin classAbstractXYDataSetCollection<OHLCDataSeriesInternal>
-
getHigh
- Specified by:
getHighin interfaceorg.jfree.data.xy.OHLCDataset
-
getHighValue
public double getHighValue(int series, int item) - Specified by:
getHighValuein interfaceorg.jfree.data.xy.OHLCDataset
-
getLow
- Specified by:
getLowin interfaceorg.jfree.data.xy.OHLCDataset
-
getLowValue
public double getLowValue(int series, int item) - Specified by:
getLowValuein interfaceorg.jfree.data.xy.OHLCDataset
-
getOpen
- Specified by:
getOpenin interfaceorg.jfree.data.xy.OHLCDataset
-
getOpenValue
public double getOpenValue(int series, int item) - Specified by:
getOpenValuein interfaceorg.jfree.data.xy.OHLCDataset
-
getClose
- Specified by:
getClosein interfaceorg.jfree.data.xy.OHLCDataset
-
getCloseValue
public double getCloseValue(int series, int item) - Specified by:
getCloseValuein interfaceorg.jfree.data.xy.OHLCDataset
-
getVolume
- Specified by:
getVolumein interfaceorg.jfree.data.xy.OHLCDataset
-
getVolumeValue
public double getVolumeValue(int series, int item) - Specified by:
getVolumeValuein interfaceorg.jfree.data.xy.OHLCDataset
-