public class SimpleHistogramBin extends java.lang.Object implements java.lang.Comparable, java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
SimpleHistogramDataset.| Constructor and Description |
|---|
SimpleHistogramBin(double lowerBound,
double upperBound)
Creates a new bin.
|
SimpleHistogramBin(double lowerBound,
double upperBound,
boolean includeLowerBound,
boolean includeUpperBound)
Creates a new bin.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(double value)
Returns
true if the specified value belongs in the bin,
and false otherwise. |
java.lang.Object |
clone()
Returns a clone of the bin.
|
int |
compareTo(java.lang.Object obj)
Compares the bin to an arbitrary object and returns the relative
ordering.
|
boolean |
equals(java.lang.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.
|
public SimpleHistogramBin(double lowerBound, double upperBound)
lowerBound - the lower bound (inclusive).upperBound - the upper bound (inclusive);public SimpleHistogramBin(double lowerBound, double upperBound, boolean includeLowerBound, boolean includeUpperBound)
lowerBound - the lower bound.upperBound - the upper bound.includeLowerBound - include the lower bound?includeUpperBound - include the upper bound?public double getLowerBound()
public double getUpperBound()
public int getItemCount()
public void setItemCount(int count)
count - the item count.public boolean accepts(double value)
true if the specified value belongs in the bin,
and false otherwise.value - the value.public boolean overlapsWith(SimpleHistogramBin bin)
true if this bin overlaps with the specified bin,
and false otherwise.bin - the other bin (null not permitted).public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - the object.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - not thrown by this class.