Package repast.simphony.chart2
Class StaticHistogramDataset
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.StaticHistogramDataset
- 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
Static histogram dataset for use with JFreeChart histograms.
- Author:
- Nick Collier
- See Also:
-
Field Summary
Fields inherited from class repast.simphony.chart2.AbstractHistogramDataset
buffer, notifyListeners
-
Constructor Summary
ConstructorDescriptionStaticHistogramDataset
(Comparable<?> key, double[] edges, OutOfRangeHandling ooHandling) StaticHistogramDataset
(Comparable<?> key, double min, double max, int numBins, OutOfRangeHandling ooHandling) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 subclassesint
int
getY
(int series, int item) double
getYValue
(int series, int item) 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, 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
-
Constructor Details
-
StaticHistogramDataset
-
StaticHistogramDataset
public StaticHistogramDataset(Comparable<?> key, double min, double max, int numBins, OutOfRangeHandling ooHandling)
-
-
Method Details
-
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
-
getY
- Specified by:
getY
in interfaceorg.jfree.data.xy.XYDataset
- Overrides:
getY
in classorg.jfree.data.statistics.SimpleHistogramDataset
-
getYValue
public double getYValue(int series, int item) - Specified by:
getYValue
in interfaceorg.jfree.data.xy.XYDataset
- Overrides:
getYValue
in classorg.jfree.data.statistics.SimpleHistogramDataset
-
getOverflow
public int getOverflow() -
getUnderflow
public int getUnderflow() -
doUpdate
protected void doUpdate()Description copied from class:AbstractHistogramDataset
Performs the actual histogramming.Implementation is left to subclasses- Specified by:
doUpdate
in classAbstractHistogramDataset
-