Package org.jfree.data.statistics
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 theHistogramDataset
class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HistogramBin(double startBoundary, double endBoundary)
Creates a new bin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Returns a clone of the bin.boolean
equals(Object obj)
Tests this object for equality with an arbitrary object.double
getBinWidth()
Returns the bin width.int
getCount()
Returns the number of items in the bin.double
getEndBoundary()
Returns the end boundary.double
getStartBoundary()
Returns the start boundary.void
incrementCount()
Increments the item count.
-
-
-
Method Detail
-
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.
-
clone
public Object clone() throws CloneNotSupportedException
Returns a clone of the bin.- Overrides:
clone
in classObject
- Returns:
- A clone.
- Throws:
CloneNotSupportedException
- not thrown by this class.
-
-