Package repast.simphony.chart2
Class DynamicHistogramDataset
- 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
-
- repast.simphony.chart2.DynamicHistogramDataset
-
- 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
public class DynamicHistogramDataset extends AbstractHistogramDataset
Dynamic histogram whose bin limits change as new data is added.- Author:
- Nick Collier
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class repast.simphony.chart2.AbstractHistogramDataset
buffer, notifyListeners
-
-
Constructor Summary
Constructors Constructor Description DynamicHistogramDataset(Comparable<?> seriesKey, int numBins)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addValues(cern.colt.list.DoubleArrayList vals)
Adds a data value to the buffer of values.protected void
doUpdate()
Performs the actual histogramming.Implementation is left to subclasses-
Methods inherited from class repast.simphony.chart2.AbstractHistogramDataset
notifyListeners, update
-
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.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
-
-
-
-
Constructor Detail
-
DynamicHistogramDataset
public DynamicHistogramDataset(Comparable<?> seriesKey, int numBins)
-
-
Method Detail
-
addValues
protected void addValues(cern.colt.list.DoubleArrayList vals)
Description copied from class:AbstractHistogramDataset
Adds a data value to the buffer of values. These values will be histogrammed on a call to#update()
.- Specified by:
addValues
in classAbstractHistogramDataset
-
doUpdate
protected void doUpdate()
Description copied from class:AbstractHistogramDataset
Performs the actual histogramming.Implementation is left to subclasses- Specified by:
doUpdate
in classAbstractHistogramDataset
-
-