Class HistogramBin

java.lang.Object
org.jfree.data.statistics.HistogramBin
All Implemented Interfaces:
Serializable, Cloneable

public class HistogramBin
extends Object
implements Cloneable, Serializable
A bin for the HistogramDataset class.
Author:
Jelai Wang, jelaiw AT mindspring.com
See Also:
Serialized Form
  • Constructor Details

    • HistogramBin

      public HistogramBin​(double startBoundary, double endBoundary)
      Creates a new bin.
      Parameters:
      startBoundary - the start boundary.
      endBoundary - the end boundary.
  • Method Details

    • getCount

      public int getCount()
      Returns the number of items in the bin.
      Returns:
      the item count.
    • incrementCount

      public void incrementCount()
      Increments the item count.
    • getStartBoundary

      public double getStartBoundary()
      Returns the start boundary.
      Returns:
      the start boundary.
    • getEndBoundary

      public double getEndBoundary()
      Returns the end boundary.
      Returns:
      the end boundary.
    • getBinWidth

      public double getBinWidth()
      Returns the bin width.
      Returns:
      the bin width.
    • equals

      public boolean equals​(Object obj)
      Tests this object for equality with an arbitrary object.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to test against.
      Returns:
      a boolean.
    • clone

      public Object clone() throws CloneNotSupportedException
      Returns a clone of the bin.
      Returns:
      a clone.
      Throws:
      CloneNotSupportedException - not thrown by this class.