Class TransformedXYDataSetCollection<T extends XYDataSeriesInternal>
java.lang.Object
org.jfree.data.general.AbstractDataset
com.illumon.iris.db.plot.datasets.AbstractDataSetCollection<T>
com.illumon.iris.db.plot.datasets.xy.AbstractXYDataSetCollection<T>
com.illumon.iris.db.plot.datasets.xy.XYDataSetCollection<XYDataSeriesInternal>
com.illumon.iris.db.plot.datasets.xy.TransformedXYDataSetCollection<T>
- All Implemented Interfaces:
DataSetCollection<XYDataSeriesInternal>
,LabeledDataSetCollection
,TransformedDataSetCollection
,ValidatingDataSeries
,XYRangedDataSetCollection<XYDataSeriesInternal>
,PlotExceptionCause
,DataChangeListener
,ObjectInputValidation
,Serializable
,Cloneable
,org.jfree.data.general.Dataset
,org.jfree.data.general.SeriesDataset
,org.jfree.data.xy.XYDataset
public class TransformedXYDataSetCollection<T extends XYDataSeriesInternal>
extends XYDataSetCollection<XYDataSeriesInternal>
implements TransformedDataSetCollection
XYDataSetCollection
with a transform on each XYDataSeriesInternal
- 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
ConstructorsConstructorDescriptionTransformedXYDataSetCollection
(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, XYDataSetCollection<T> collection, Function<T, XYDataSeriesInternal> transform, boolean notifyDataChanged) Creates a TransformedXYDataSetCollection instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(MultiSeriesInternal series) void
add
(XYDataSeriesInternal series) Adds a series to this collection.void
setCanAddSeries
(boolean canAddSeries) Methods inherited from class com.illumon.iris.db.plot.datasets.xy.XYDataSetCollection
createNewSnapshot, getLabel, getPointColor, validate
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
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
axes, dimension, get, getAllSeries, id, multiSeries, remove, series
Methods inherited from interface com.illumon.iris.db.plot.errors.PlotExceptionCause
getPlotInfo
Methods inherited from interface com.illumon.iris.db.plot.datasets.XYRangedDataSetCollection
getXRange
-
Constructor Details
-
TransformedXYDataSetCollection
public TransformedXYDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, XYDataSetCollection<T> collection, Function<T, XYDataSeriesInternal> transform, boolean notifyDataChanged) Creates a TransformedXYDataSetCollection instance. Applies thetransform
to eachXYDataSeriesInternal
incollection
.- Parameters:
axes
- corresponding axes for datasetcollectiongovernor
- update throttledynamicSeriesNamer
- utility to name dynamically generated seriescollection
- datatransform
- transformnotifyDataChanged
- whether to fire dataset changed events- Throws:
com.fishlib.base.verify.RequirementFailure
-collection
andtransform
may not be null.
-
-
Method Details
-
add
- Specified by:
add
in interfaceDataSetCollection<T extends XYDataSeriesInternal>
- Overrides:
add
in classAbstractDataSetCollection<XYDataSeriesInternal>
-
add
Description copied from interface:DataSetCollection
Adds a series to this collection.- Specified by:
add
in interfaceDataSetCollection<T extends XYDataSeriesInternal>
- Overrides:
add
in classAbstractDataSetCollection<XYDataSeriesInternal>
- Parameters:
series
- series
-
setCanAddSeries
public void setCanAddSeries(boolean canAddSeries) - Specified by:
setCanAddSeries
in interfaceTransformedDataSetCollection
-