org.jfree.data.statistics

Class HistogramBin

public class HistogramBin extends Object implements Cloneable, Serializable

A bin for the HistogramDataset class.
Constructor Summary
HistogramBin(double startBoundary, double endBoundary)
Creates a new bin.
Method Summary
Objectclone()
Returns a clone of the bin.
booleanequals(Object obj)
Tests this object for equality with an arbitrary object.
doublegetBinWidth()
Returns the bin width.
intgetCount()
Returns the number of items in the bin.
doublegetEndBoundary()
Returns the end boundary.
doublegetStartBoundary()
Returns the start boundary.
voidincrementCount()
Increments the item count.

Constructor Detail

HistogramBin

public HistogramBin(double startBoundary, double endBoundary)
Creates a new bin.

Parameters: startBoundary the start boundary. endBoundary the end boundary.

Method Detail

clone

public Object clone()
Returns a clone of the bin.

Returns: A clone.

Throws: CloneNotSupportedException not thrown by this class.

equals

public boolean equals(Object obj)
Tests this object for equality with an arbitrary object.

Parameters: obj the object to test against.

Returns: A boolean.

getBinWidth

public double getBinWidth()
Returns the bin width.

Returns: The bin width.

getCount

public int getCount()
Returns the number of items in the bin.

Returns: The item count.

getEndBoundary

public double getEndBoundary()
Returns the end boundary.

Returns: The end boundary.

getStartBoundary

public double getStartBoundary()
Returns the start boundary.

Returns: The start boundary.

incrementCount

public void incrementCount()
Increments the item count.