Class AbstractDataSetCollection<T extends DataSeriesInternal>
java.lang.Object
org.jfree.data.general.AbstractDataset
com.illumon.iris.db.plot.datasets.AbstractDataSetCollection<T>
- All Implemented Interfaces:
DataSetCollection<T>,PlotExceptionCause,DataChangeListener,ObjectInputValidation,Serializable,Cloneable,org.jfree.data.general.Dataset
- Direct Known Subclasses:
AbstractXYDataSetCollection,CategoryDataSetCollection
public abstract class AbstractDataSetCollection<T extends DataSeriesInternal>
extends org.jfree.data.general.AbstractDataset
implements DataSetCollection<T>
The basis for a collection of datasets.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, PlotInfo plotInfo, boolean notifyDataChanged) Creates an XYDataSetCollection instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MultiSeriesInternal<T> series) voidAdds a series to this collection.voidprotected voidaddMultiSeries(MultiSeriesInternal<T> series, boolean addToSeriesNamer) protected voidaxes()intGets the dimension of this data set.protected voidget(Comparable seriesName) Returns index of the series, -1 if its not foundprotected List<Comparable>Returns series namesintid()Gets the id of this datasetcollection which is same as the id of theAxesinstance it is associated withprotected booleanvoidNotifies this listener that the underlying data has changed.voidnotifyDataChanged(RunnableFuture callback) Notifies this listener that the underlying data has changed.voidnotifySeriesChanged(boolean incremental) Notifies this listener that the underlying data has a new series.protected voidreindexSeriesSync(boolean incremental, boolean onlyIfGuiClient, boolean notify) Set<? extends SeriesInternal>Removes the series with the specified names from this collection.voidseries()voidsetSnapshotsEnabled(boolean enabled) protected voidMethods 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
onFailed, onOneClick, onOneClickRemoved, removeOnOneClickMethods inherited from interface com.illumon.iris.db.plot.datasets.DataSetCollection
constructSnapshot, getCurrentSnapshot
-
Constructor Details
-
AbstractDataSetCollection
public AbstractDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, PlotInfo plotInfo, boolean notifyDataChanged) Creates an XYDataSetCollection instance.- Parameters:
governor- update throttle
-
-
Method Details
-
testIfSwingDispatchThreadIfNotTestMode
protected void testIfSwingDispatchThreadIfNotTestMode() -
axes
- Specified by:
axesin interfaceDataSetCollection<T extends DataSeriesInternal>- Returns:
- the axes of this dataset collection
-
getPlotInfo
- Specified by:
getPlotInfoin interfacePlotExceptionCause
-
id
public int id()Description copied from interface:DataSetCollectionGets the id of this datasetcollection which is same as the id of theAxesinstance it is associated with- Specified by:
idin interfaceDataSetCollection<T extends DataSeriesInternal>- Returns:
- - id of the datasetcollection
-
add
Description copied from interface:DataSetCollectionAdds a series to this collection.- Specified by:
addin interfaceDataSetCollection<T extends DataSeriesInternal>- Parameters:
series- series
-
add
- Specified by:
addin interfaceDataSetCollection<T extends DataSeriesInternal>
-
addSeries
-
addMultiSeries
-
getDynamicSeriesNamer
-
getGovernor
-
remove
Description copied from interface:DataSetCollectionRemoves the series with the specified names from this collection.- Specified by:
removein interfaceDataSetCollection<T extends DataSeriesInternal>- Parameters:
names- series names
-
series
- Specified by:
seriesin interfaceDataSetCollection<T extends DataSeriesInternal>- Returns:
- the series (not including the MultiSeries) in this collection
-
multiSeries
- Specified by:
multiSeriesin interfaceDataSetCollection<T extends DataSeriesInternal>
-
reindexSeriesSync
protected void reindexSeriesSync(boolean incremental, boolean onlyIfGuiClient, boolean notify) -
getAllSeries
- Specified by:
getAllSeriesin interfaceDataSetCollection<T extends DataSeriesInternal>- Returns:
- all series from this collection
-
notifyDataChanged
public void notifyDataChanged()Description copied from interface:DataChangeListenerNotifies this listener that the underlying data has changed.- Specified by:
notifyDataChangedin interfaceDataChangeListener
-
notifyDataChanged
Description copied from interface:DataChangeListenerNotifies this listener that the underlying data has changed.- Specified by:
notifyDataChangedin interfaceDataChangeListener- Parameters:
callback- to call once done
-
fireDatasetChanged
protected void fireDatasetChanged()- Overrides:
fireDatasetChangedin classorg.jfree.data.general.AbstractDataset
-
addFireDatasetChangeListener
public void addFireDatasetChangeListener(AbstractDataSetCollection.FireDatasetChangeListener listener) -
removeFireDatasetChangeListener
public void removeFireDatasetChangeListener(AbstractDataSetCollection.FireDatasetChangeListener listener) -
notifySeriesChanged
public void notifySeriesChanged(boolean incremental) Description copied from interface:DataChangeListenerNotifies this listener that the underlying data has a new series.- Specified by:
notifySeriesChangedin interfaceDataChangeListener- Parameters:
incremental- whether the series change is additive
-
dimension
public int dimension()Description copied from interface:DataSetCollectionGets the dimension of this data set.- Specified by:
dimensionin interfaceDataSetCollection<T extends DataSeriesInternal>- Returns:
- dimension of this data set
-
get
Description copied from interface:DataSetCollectionReturns index of the series, -1 if its not found- Specified by:
getin interfaceDataSetCollection<T extends DataSeriesInternal>- Parameters:
seriesName- name of the series- Returns:
- index of the series
-
getSeriesNames
Returns series names- Returns:
- series names
-
setSnapshotsEnabled
public void setSnapshotsEnabled(boolean enabled) -
isNotifyDataChanged
protected boolean isNotifyDataChanged()
-