Class TransformedOHLCDataSetCollection
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
com.illumon.iris.db.plot.datasets.ohlc.TransformedOHLCDataSetCollection
- All Implemented Interfaces:
DataSetCollection<OHLCDataSeriesInternal>,TransformedDataSetCollection,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
public class TransformedOHLCDataSetCollection extends OHLCDataSetCollection implements TransformedDataSetCollection
Collection of
OHLCDataSeriesInternal with a transform applied to each series.- 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 TransformedOHLCDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, OHLCDataSetCollection collection, Function<OHLCDataSeriesInternal,? extends OHLCDataSeriesInternal> transform, boolean notifyDataChanged)Creates a TransformedOHLCDataSetCollection instance. -
Method Summary
Modifier and Type Method Description voidadd(MultiSeriesInternal series)voidadd(OHLCDataSeriesInternal series)Adds a series to this collection.voidsetCanAddSeries(boolean canAddSeries)Methods inherited from class com.illumon.iris.db.plot.datasets.ohlc.OHLCDataSetCollection
createNewSnapshot, getClose, getCloseValue, getHigh, getHighValue, getLow, getLowValue, getOpen, getOpenValue, getVolume, getVolumeValueMethods 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
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
axes, dimension, get, getAllSeries, id, multiSeries, remove, seriesMethods 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
-
TransformedOHLCDataSetCollection
public TransformedOHLCDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, OHLCDataSetCollection collection, Function<OHLCDataSeriesInternal,? extends OHLCDataSeriesInternal> transform, boolean notifyDataChanged)Creates a TransformedOHLCDataSetCollection instance. Applies thetransformto everyOHLCDataSeriesInternalin thecollection.- Parameters:
axes- corresponding axes for datasetcollectiongovernor- update throttledynamicSeriesNamer- utility to name dynamically generated seriescollection- collection ofOHLCDataSeriesInternaltransform- transformnotifyDataChanged- whether to fire dataset changed events
-
-
Method Details
-
add
- Specified by:
addin interfaceDataSetCollection<OHLCDataSeriesInternal>- Overrides:
addin classAbstractDataSetCollection<OHLCDataSeriesInternal>
-
add
Description copied from interface:DataSetCollectionAdds a series to this collection.- Specified by:
addin interfaceDataSetCollection<OHLCDataSeriesInternal>- Overrides:
addin classAbstractDataSetCollection<OHLCDataSeriesInternal>- Parameters:
series- series
-
setCanAddSeries
public void setCanAddSeries(boolean canAddSeries)- Specified by:
setCanAddSeriesin interfaceTransformedDataSetCollection
-