public class

SimpleHistogramBin

extends Object
implements Serializable Cloneable Comparable<T>
java.lang.Object
   ↳ org.jfree.data.statistics.SimpleHistogramBin

Class Overview

A bin for the SimpleHistogramDataset.

Summary

Public Constructors
SimpleHistogramBin(double lowerBound, double upperBound)
Creates a new bin.
SimpleHistogramBin(double lowerBound, double upperBound, boolean includeLowerBound, boolean includeUpperBound)
Creates a new bin.
Public Methods
boolean accepts(double value)
Returns true if the specified value belongs in the bin, and false otherwise.
Object clone()
Returns a clone of the bin.
int compareTo(Object obj)
Compares the bin to an arbitrary object and returns the relative ordering.
boolean equals(Object obj)
Tests this bin for equality with an arbitrary object.
int getItemCount()
Returns the item count.
double getLowerBound()
Returns the lower bound.
double getUpperBound()
Return the upper bound.
boolean overlapsWith(SimpleHistogramBin bin)
Returns true if this bin overlaps with the specified bin, and false otherwise.
void setItemCount(int count)
Sets the item count.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public SimpleHistogramBin (double lowerBound, double upperBound)

Creates a new bin.

Parameters
lowerBound the lower bound (inclusive).
upperBound the upper bound (inclusive);

public SimpleHistogramBin (double lowerBound, double upperBound, boolean includeLowerBound, boolean includeUpperBound)

Creates a new bin.

Parameters
lowerBound the lower bound.
upperBound the upper bound.
includeLowerBound include the lower bound?
includeUpperBound include the upper bound?

Public Methods

public boolean accepts (double value)

Returns true if the specified value belongs in the bin, and false otherwise.

Parameters
value the value.
Returns
  • A boolean.

public Object clone ()

Returns a clone of the bin.

Returns
  • A clone.
Throws
CloneNotSupportedException not thrown by this class.

public int compareTo (Object obj)

Compares the bin to an arbitrary object and returns the relative ordering.

Parameters
obj the object.
Returns
  • An integer indicating the relative ordering of the this bin and the given object.

public boolean equals (Object obj)

Tests this bin for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public int getItemCount ()

Returns the item count.

Returns
  • The item count.

public double getLowerBound ()

Returns the lower bound.

Returns
  • The lower bound.

public double getUpperBound ()

Return the upper bound.

Returns
  • The upper bound.

public boolean overlapsWith (SimpleHistogramBin bin)

Returns true if this bin overlaps with the specified bin, and false otherwise.

Parameters
bin the other bin (null not permitted).
Returns
  • A boolean.

public void setItemCount (int count)

Sets the item count.

Parameters
count the item count.