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:
  • 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

    Modifier and Type
    Method
    Description
    protected void
    addValues(cern.colt.list.DoubleArrayList vals)
    Adds a data value to the buffer of values.
    protected void
    Performs the actual histogramming.Implementation is left to subclasses
    int
     
    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

  • 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 class AbstractHistogramDataset
    • getY

      public Number getY(int series, int item)
      Specified by:
      getY in interface org.jfree.data.xy.XYDataset
      Overrides:
      getY in class org.jfree.data.statistics.SimpleHistogramDataset
    • getYValue

      public double getYValue(int series, int item)
      Specified by:
      getYValue in interface org.jfree.data.xy.XYDataset
      Overrides:
      getYValue in class org.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 class AbstractHistogramDataset