public class SimpleHistogramBin extends Object implements Comparable, Cloneable, org.jfree.util.PublicCloneable, 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. |
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.
|
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(Object obj)
compareTo
in interface Comparable
obj
- the object.public boolean equals(Object obj)
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class Object
CloneNotSupportedException
- not thrown by this class.Jas4pp 1.5 © Java Analysis Studio for Particle Physics