public class

HistogramBin

extends Object
implements Serializable Cloneable
java.lang.Object
   ↳ org.jfree.data.statistics.HistogramBin

Class Overview

A bin for the HistogramDataset class.

Summary

Public Constructors
HistogramBin(double startBoundary, double endBoundary)
Creates a new bin.
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HistogramBin (double startBoundary, double endBoundary)

Creates a new bin.

Parameters
startBoundary the start boundary.
endBoundary the end boundary.

Public Methods

public Object clone ()

Returns a clone of the bin.

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

public boolean equals (Object obj)

Tests this object for equality with an arbitrary object.

Parameters
obj the object to test against.
Returns
  • A boolean.

public double getBinWidth ()

Returns the bin width.

Returns
  • The bin width.

public int getCount ()

Returns the number of items in the bin.

Returns
  • The item count.

public double getEndBoundary ()

Returns the end boundary.

Returns
  • The end boundary.

public double getStartBoundary ()

Returns the start boundary.

Returns
  • The start boundary.

public void incrementCount ()

Increments the item count.