Save This Page
Home » jcommon-1.0.13 » org.jfree » data » statistics » [javadoc | source]
org.jfree.data.statistics
public class: SimpleHistogramDataset [javadoc | source]
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

All Implemented Interfaces:
    PublicCloneable, Cloneable, IntervalXYDataset, Serializable, XYDataset, SeriesDataset, SeriesChangeListener, Dataset, ObjectInputValidation

A dataset used for creating simple histograms with custom defined bins.
Constructor:
 public SimpleHistogramDataset(Comparable key) 
    Creates a new histogram dataset. Note that the adjustForBinSize flag defaults to true.
    Parameters:
    key - the series key (null not permitted).
Method from org.jfree.data.statistics.SimpleHistogramDataset Summary:
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 from org.jfree.data.xy.AbstractIntervalXYDataset:
getEndXValue,   getEndYValue,   getStartXValue,   getStartYValue
Methods from org.jfree.data.xy.AbstractXYDataset:
getDomainOrder,   getXValue,   getYValue
Methods from org.jfree.data.general.AbstractSeriesDataset:
getSeriesCount,   getSeriesKey,   indexOf,   seriesChanged
Methods from org.jfree.data.general.AbstractDataset:
addChangeListener,   clone,   fireDatasetChanged,   getGroup,   hasListener,   notifyListeners,   removeChangeListener,   setGroup,   validateObject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.data.statistics.SimpleHistogramDataset Detail:
 public  void addBin(SimpleHistogramBin bin) 
    Adds a bin to the dataset. An exception is thrown if the bin overlaps with any existing bin in the dataset.
 public  void addObservation(double value) 
    Adds an observation to the dataset (by incrementing the item count for the appropriate bin). A runtime exception is thrown if the value does not fit into any bin.
 public  void addObservation(double value,
    boolean notify) 
    Adds an observation to the dataset (by incrementing the item count for the appropriate bin). A runtime exception is thrown if the value does not fit into any bin.
 public  void addObservations(double[] values) 
    Adds a set of values to the dataset and sends a DatasetChangeEvent to all registered listeners.
 public  void clearObservations() 
    Removes all current observation data and sends a DatasetChangeEvent to all registered listeners.
 public Object clone() throws CloneNotSupportedException 
    Returns a clone of the dataset.
 public boolean equals(Object obj) 
    Compares the dataset for equality with an arbitrary object.
 public boolean getAdjustForBinSize() 
    Returns a flag that controls whether or not the bin count is divided by the bin size in the #getXValue(int, int) method.
 public DomainOrder getDomainOrder() 
    Returns the order of the domain (or X) values returned by the dataset.
 public Number getEndX(int series,
    int item) 
    Returns the ending X value for the specified series and item.
 public double getEndXValue(int series,
    int item) 
    Returns the end x-value (as a double primitive) for an item within a series.
 public Number getEndY(int series,
    int item) 
    Returns the ending Y value for the specified series and item.
 public double getEndYValue(int series,
    int item) 
    Returns the end y-value (as a double primitive) for an item within a series.
 public int getItemCount(int series) 
    Returns the number of items in a series. Since this dataset only stores a single series, the series argument is ignored.
 public int getSeriesCount() 
    Returns the number of series in the dataset (always 1 for this dataset).
 public Comparable getSeriesKey(int series) 
    Returns the key for a series. Since this dataset only stores a single series, the series argument is ignored.
 public Number getStartX(int series,
    int item) 
    Returns the starting X value for the specified series and item.
 public double getStartXValue(int series,
    int item) 
    Returns the start x-value (as a double primitive) for an item within a series.
 public Number getStartY(int series,
    int item) 
    Returns the starting Y value for the specified series and item.
 public double getStartYValue(int series,
    int item) 
    Returns the start y-value (as a double primitive) for an item within a series.
 public Number getX(int series,
    int item) 
    Returns the x-value for an item within a series. The x-values may or may not be returned in ascending order, that is up to the class implementing the interface.
 public double getXValue(int series,
    int item) 
    Returns the x-value (as a double primitive) for an item within a series.
 public Number getY(int series,
    int item) 
    Returns the y-value for an item within a series.
 public double getYValue(int series,
    int item) 
    Returns the y-value (as a double primitive) for an item within a series.
 public  void removeAllBins() 
 public  void setAdjustForBinSize(boolean adjust)