Class IntervalDataSetCollectionWrapper<T extends XYDataSeriesInternal>
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
com.illumon.iris.db.plot.datasets.interval.IntervalDataSetCollectionWrapper<T>
- All Implemented Interfaces:
DataSetCollection<T>,LabeledDataSetCollection,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.IntervalXYDataset,org.jfree.data.xy.XYDataset
- Direct Known Subclasses:
IntervalAndTableXYDataSetCollectionWrapper,IntervalDataSetCollectionWrapper.IntervalDataSetCollectionWrapperSnapshot
public class IntervalDataSetCollectionWrapper<T extends XYDataSeriesInternal>
extends org.jfree.data.general.AbstractSeriesDataset
implements org.jfree.data.xy.XYDataset, DataSetCollection<T>, LabeledDataSetCollection, org.jfree.data.xy.IntervalXYDataset, Serializable
Collection of
IntervalXYDataSeriesInternal.
Data values are placed in the middle of the bar. Bar width
is based off the smallest difference between adjacent data points.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classIntervalDataSetCollectionWrapper.IntervalDataSetCollectionWrapperSnapshot<T extends XYDataSeriesInternal> -
Constructor Summary
ConstructorsConstructorDescriptionIntervalDataSetCollectionWrapper(LambdaGovernor governor, XYDataSetCollection<T> data, boolean notifyDataChanged) Creates an instance of IntervalDataSetCollectionWrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MultiSeriesInternal<T> series) voidAdds a series to this collection.voidaxes()org.jfree.data.RangevoidConstructs 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.DomainOrdergetEndX(int i, int i1) doublegetEndXValue(int i, int i1) getEndY(int i, int i1) doublegetEndYValue(int i, int i1) protected LambdaGovernorintgetItemCount(int i) getLabel(int series, int item) Gets the label for a data point.intgetSeriesKey(int i) getStartX(int i, int i1) doublegetStartXValue(int i, int i1) getStartY(int i, int i1) doublegetStartYValue(int i, int i1) getX(int i, int i1) doublegetXValue(int i, int i1) getY(int i, int i1) doublegetYValue(int i, int i1) intid()Gets the id of this datasetcollection which is same as the id of theAxesinstance it is associated withvoidNotifies this listener that the underlying data has changed.voidnotifyDataChanged(RunnableFuture callback) Notifies this listener that the underlying data has changed.voidnotifySeriesChanged(boolean seriesChanged) Notifies this listener that the underlying data has a new series.Set<? extends SeriesInternal>Removes the series with the specified names from this collection.series()Methods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChangedMethods 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 org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroupMethods inherited from interface org.jfree.data.general.SeriesDataset
indexOf
-
Constructor Details
-
IntervalDataSetCollectionWrapper
public IntervalDataSetCollectionWrapper(LambdaGovernor governor, XYDataSetCollection<T> data, boolean notifyDataChanged) Creates an instance of IntervalDataSetCollectionWrapper. Calculates a dataset suitable for bar charts from anXYDataSetCollection.- Parameters:
governor- update throttledata- datanotifyDataChanged- whether to fire dataset changed events
-
-
Method Details
-
getGovernor
-
axes
- Specified by:
axesin interfaceDataSetCollection<T extends XYDataSeriesInternal>- Returns:
- the axes of this dataset collection
-
getLabel
Description copied from interface:LabeledDataSetCollectionGets the label for a data point.- Specified by:
getLabelin interfaceLabeledDataSetCollection- Parameters:
series- series indexitem- data point index inside specified series- Returns:
- label for specified data point
-
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
-
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 seriesChanged) Description copied from interface:DataChangeListenerNotifies this listener that the underlying data has a new series.- Specified by:
notifySeriesChangedin interfaceDataChangeListener- Parameters:
seriesChanged- whether the series change is additive
-
getSeriesCount
public int getSeriesCount()- Specified by:
getSeriesCountin interfaceorg.jfree.data.general.SeriesDataset- Specified by:
getSeriesCountin classorg.jfree.data.general.AbstractSeriesDataset
-
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
-
getStartX
- Specified by:
getStartXin interfaceorg.jfree.data.xy.IntervalXYDataset
-
getStartXValue
public double getStartXValue(int i, int i1) - Specified by:
getStartXValuein interfaceorg.jfree.data.xy.IntervalXYDataset
-
getEndX
- Specified by:
getEndXin interfaceorg.jfree.data.xy.IntervalXYDataset
-
getEndXValue
public double getEndXValue(int i, int i1) - Specified by:
getEndXValuein interfaceorg.jfree.data.xy.IntervalXYDataset
-
getStartY
- Specified by:
getStartYin interfaceorg.jfree.data.xy.IntervalXYDataset
-
getStartYValue
public double getStartYValue(int i, int i1) - Specified by:
getStartYValuein interfaceorg.jfree.data.xy.IntervalXYDataset
-
getEndY
- Specified by:
getEndYin interfaceorg.jfree.data.xy.IntervalXYDataset
-
getEndYValue
public double getEndYValue(int i, int i1) - Specified by:
getEndYValuein interfaceorg.jfree.data.xy.IntervalXYDataset
-
getDomainOrder
public org.jfree.data.DomainOrder getDomainOrder()- Specified by:
getDomainOrderin interfaceorg.jfree.data.xy.XYDataset
-
getItemCount
public int getItemCount(int i) - Specified by:
getItemCountin interfaceorg.jfree.data.xy.XYDataset
-
getX
- Specified by:
getXin interfaceorg.jfree.data.xy.XYDataset
-
getXValue
public double getXValue(int i, int i1) - Specified by:
getXValuein interfaceorg.jfree.data.xy.XYDataset
-
getY
- Specified by:
getYin interfaceorg.jfree.data.xy.XYDataset
-
getYValue
public double getYValue(int i, int i1) - Specified by:
getYValuein interfaceorg.jfree.data.xy.XYDataset
-
addFireDatasetChangeListener
public void addFireDatasetChangeListener(AbstractDataSetCollection.FireDatasetChangeListener listener) -
fireDatasetChanged
protected void fireDatasetChanged()- Overrides:
fireDatasetChangedin classorg.jfree.data.general.AbstractDataset
-
calculateXRangeWithBars
public org.jfree.data.Range calculateXRangeWithBars() -
getPlotInfo
- Specified by:
getPlotInfoin interfacePlotExceptionCause
-