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
public class StaticHistogramDataset extends AbstractHistogramDataset
Static histogram dataset for use with JFreeChart histograms.- Author:
- Nick Collier
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class repast.simphony.chart2.AbstractHistogramDataset
buffer, notifyListeners
-
-
Constructor Summary
Constructors Constructor Description StaticHistogramDataset(Comparable<?> key, double[] edges, OutOfRangeHandling ooHandling)
StaticHistogramDataset(Comparable<?> key, double min, double max, int numBins, OutOfRangeHandling ooHandling)
-
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 subclassesint
getOverflow()
int
getUnderflow()
Number
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.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
-
StaticHistogramDataset
public StaticHistogramDataset(Comparable<?> key, double[] edges, OutOfRangeHandling ooHandling)
-
StaticHistogramDataset
public StaticHistogramDataset(Comparable<?> key, double min, double max, int numBins, OutOfRangeHandling ooHandling)
-
-
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
-
getY
public Number getY(int series, int item)
- 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
-
-