Class StackedXYDataSetCollection<T extends XYDataSeriesInternal>
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
com.illumon.iris.db.plot.datasets.xy.StackedXYDataSetCollection<T>
- All Implemented Interfaces:
DataSetCollection<T>,PlotExceptionCause,DataChangeListener,ObjectInputValidation,Serializable,Cloneable,EventListener,org.jfree.data.general.Dataset,org.jfree.data.general.SeriesChangeListener,org.jfree.data.general.SeriesDataset,org.jfree.data.xy.TableXYDataset,org.jfree.data.xy.XYDataset
- Direct Known Subclasses:
StackedXYDataSetCollection.StackedXYDataSetCollectionSnapshot
public class StackedXYDataSetCollection<T extends XYDataSeriesInternal>
extends org.jfree.data.general.AbstractSeriesDataset
implements DataSetCollection<T>, org.jfree.data.xy.TableXYDataset, Serializable
DataSetCollection for stacked area charts.
All XYDataSeriesInternal in the collection must have the same x-values.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionStackedXYDataSetCollection(LambdaGovernor governor, XYDataSetCollection<T> dataset, boolean notifyDataChanged) Creates a StackedXYDataSetCollection instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MultiSeriesInternal<T> series) voidAdds a series to this collection.voidaddChangeListener(org.jfree.data.general.DatasetChangeListener datasetChangeListener) voidaxes()voidConstructs a snapshot of this dataset collection.intGets the dimension of this data set.protected voidget(Comparable seriesName) Returns index of the series, -1 if its not foundReturns a snapshot of this dataset collection in which no series which will update.org.jfree.data.DomainOrderorg.jfree.data.general.DatasetGroupgetGroup()intintgetItemCount(int series) intgetSeriesKey(int series) getX(int series, int item) doublegetXValue(int series, int item) getY(int series, int item) doublegetYValue(int series, int item) intid()Gets the id of this datasetcollection which is same as the id of theAxesinstance it is associated withintindexOf(Comparable series) voidNotifies 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.Set<? extends SeriesInternal>Removes the series with the specified names from this collection.voidremoveChangeListener(org.jfree.data.general.DatasetChangeListener datasetChangeListener) series()voidsetGroup(org.jfree.data.general.DatasetGroup datasetGroup) Methods inherited from class org.jfree.data.general.AbstractSeriesDataset
seriesChangedMethods inherited from class org.jfree.data.general.AbstractDataset
clone, getNotify, hasListener, notifyListeners, 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, removeOnOneClick
-
Constructor Details
-
StackedXYDataSetCollection
public StackedXYDataSetCollection(LambdaGovernor governor, XYDataSetCollection<T> dataset, boolean notifyDataChanged) Creates a StackedXYDataSetCollection instance.- Parameters:
dataset- datanotifyDataChanged- whether to fire dataset changed events- Throws:
PlotIllegalArgumentException-collectionmust not be nullIllegalArgumentException- all series must have the same x-values
-
-
Method Details
-
axes
- Specified by:
axesin interfaceDataSetCollection<T extends XYDataSeriesInternal>- Returns:
- the axes of this dataset collection
-
series
- Specified by:
seriesin interfaceDataSetCollection<T extends XYDataSeriesInternal>- Returns:
- the series (not including the MultiSeries) in this collection
-
multiSeries
- Specified by:
multiSeriesin interfaceDataSetCollection<T extends XYDataSeriesInternal>
-
add
Description copied from interface:DataSetCollectionAdds a series to this collection.- Specified by:
addin interfaceDataSetCollection<T extends XYDataSeriesInternal>- Parameters:
series- series
-
add
- Specified by:
addin interfaceDataSetCollection<T extends XYDataSeriesInternal>
-
remove
Description copied from interface:DataSetCollectionRemoves the series with the specified names from this collection.- Specified by:
removein interfaceDataSetCollection<T extends XYDataSeriesInternal>- Parameters:
names- series names
-
dimension
public int dimension()Description copied from interface:DataSetCollectionGets the dimension of this data set.- Specified by:
dimensionin interfaceDataSetCollection<T extends XYDataSeriesInternal>- Returns:
- dimension of this data set
-
getSeriesCount
public int getSeriesCount()- Specified by:
getSeriesCountin interfaceorg.jfree.data.general.SeriesDataset- Specified by:
getSeriesCountin classorg.jfree.data.general.AbstractSeriesDataset
-
getAllSeries
- Specified by:
getAllSeriesin interfaceDataSetCollection<T extends XYDataSeriesInternal>- Returns:
- all series from this collection
-
constructSnapshot
public void constructSnapshot()Description copied from interface:DataSetCollectionConstructs a snapshot of this dataset collection.- Specified by:
constructSnapshotin interfaceDataSetCollection<T extends XYDataSeriesInternal>
-
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 XYDataSeriesInternal>- Returns:
- - id of the datasetcollection
-
getCurrentSnapshot
Description copied from interface:DataSetCollectionReturns a snapshot of this dataset collection in which no series which will update.- Specified by:
getCurrentSnapshotin interfaceDataSetCollection<T extends XYDataSeriesInternal>
-
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
-
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
-
addFireDatasetChangeListener
public void addFireDatasetChangeListener(AbstractDataSetCollection.FireDatasetChangeListener lisetener) -
fireDatasetChanged
protected void fireDatasetChanged()- Overrides:
fireDatasetChangedin classorg.jfree.data.general.AbstractDataset
-
getItemCount
public int getItemCount()- Specified by:
getItemCountin interfaceorg.jfree.data.xy.TableXYDataset
-
getDomainOrder
public org.jfree.data.DomainOrder getDomainOrder()- Specified by:
getDomainOrderin interfaceorg.jfree.data.xy.XYDataset
-
getItemCount
public int getItemCount(int series) - Specified by:
getItemCountin interfaceorg.jfree.data.xy.XYDataset
-
getX
- Specified by:
getXin interfaceorg.jfree.data.xy.XYDataset
-
getXValue
public double getXValue(int series, int item) - Specified by:
getXValuein interfaceorg.jfree.data.xy.XYDataset
-
getY
- Specified by:
getYin interfaceorg.jfree.data.xy.XYDataset
-
getYValue
public double getYValue(int series, int item) - Specified by:
getYValuein interfaceorg.jfree.data.xy.XYDataset
-
getSeriesKey
- Specified by:
getSeriesKeyin interfaceorg.jfree.data.general.SeriesDataset- Specified by:
getSeriesKeyin classorg.jfree.data.general.AbstractSeriesDataset
-
get
Description copied from interface:DataSetCollectionReturns index of the series, -1 if its not found- Specified by:
getin interfaceDataSetCollection<T extends XYDataSeriesInternal>- Parameters:
seriesName- name of the series- Returns:
- index of the series
-
indexOf
- Specified by:
indexOfin interfaceorg.jfree.data.general.SeriesDataset- Overrides:
indexOfin classorg.jfree.data.general.AbstractSeriesDataset
-
addChangeListener
public void addChangeListener(org.jfree.data.general.DatasetChangeListener datasetChangeListener) - Specified by:
addChangeListenerin interfaceorg.jfree.data.general.Dataset- Overrides:
addChangeListenerin classorg.jfree.data.general.AbstractDataset
-
removeChangeListener
public void removeChangeListener(org.jfree.data.general.DatasetChangeListener datasetChangeListener) - Specified by:
removeChangeListenerin interfaceorg.jfree.data.general.Dataset- Overrides:
removeChangeListenerin classorg.jfree.data.general.AbstractDataset
-
getGroup
public org.jfree.data.general.DatasetGroup getGroup()- Specified by:
getGroupin interfaceorg.jfree.data.general.Dataset- Overrides:
getGroupin classorg.jfree.data.general.AbstractDataset
-
setGroup
public void setGroup(org.jfree.data.general.DatasetGroup datasetGroup) - Specified by:
setGroupin interfaceorg.jfree.data.general.Dataset- Overrides:
setGroupin classorg.jfree.data.general.AbstractDataset
-
getPlotInfo
- Specified by:
getPlotInfoin interfacePlotExceptionCause
-