Package repast.simphony.chart2
Class AbstractHistogramDataset
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.xy.AbstractXYDataset
org.jfree.data.xy.AbstractIntervalXYDataset
org.jfree.data.statistics.SimpleHistogramDataset
repast.simphony.chart2.AbstractHistogramDataset
- All Implemented Interfaces:
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
,org.jfree.util.PublicCloneable
- Direct Known Subclasses:
DynamicHistogramDataset
,StaticHistogramDataset
public abstract class AbstractHistogramDataset
extends org.jfree.data.statistics.SimpleHistogramDataset
Base class for histogram datasets to be used with JFreeCharts. This will
accumulate values in a buffer until
#update()
is called. At that
point the current histogram data will be removed and the data in the buffer
will be histogramed. The default is never to fire change events and let the
chart execute code do that actual update via the plot.- Author:
- Nick Collier
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected cern.colt.list.DoubleArrayList
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addValues
(cern.colt.list.DoubleArrayList vals) Adds a data value to the buffer of values.protected abstract void
doUpdate()
Performs the actual histogramming.Implementation is left to subclassesprotected void
notifyListeners
(org.jfree.data.general.DatasetChangeEvent arg0) void
update
(cern.colt.list.DoubleArrayList vals) Updates the histogram with the values in the buffer.Methods inherited from class org.jfree.data.statistics.SimpleHistogramDataset
addBin, addObservation, addObservation, addObservations, clearObservations, clone, equals, getAdjustForBinSize, getDomainOrder, getEndX, getEndXValue, getEndY, getEndYValue, getItemCount, getSeriesCount, getSeriesKey, getStartX, getStartXValue, getStartY, getStartYValue, getX, getXValue, getY, getYValue, removeAllBins, setAdjustForBinSize
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChanged
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, fireDatasetChanged, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
Methods inherited from interface org.jfree.data.general.SeriesDataset
indexOf
-
Field Details
-
buffer
protected cern.colt.list.DoubleArrayList buffer -
notifyListeners
protected boolean notifyListeners
-
-
Constructor Details
-
AbstractHistogramDataset
-
-
Method Details
-
addValues
protected abstract void addValues(cern.colt.list.DoubleArrayList vals) Adds a data value to the buffer of values. These values will be histogrammed on a call to#update()
.- Parameters:
val
-
-
update
public void update(cern.colt.list.DoubleArrayList vals) Updates the histogram with the values in the buffer. -
doUpdate
protected abstract void doUpdate()Performs the actual histogramming.Implementation is left to subclasses -
notifyListeners
protected void notifyListeners(org.jfree.data.general.DatasetChangeEvent arg0) - Overrides:
notifyListeners
in classorg.jfree.data.general.AbstractDataset
-