|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.statistics.SimpleHistogramBin
public class SimpleHistogramBin
A bin for the SimpleHistogramDataset
.
Constructor Summary | |
---|---|
SimpleHistogramBin(double lowerBound,
double upperBound)
Creates a new bin. |
|
SimpleHistogramBin(double lowerBound,
double upperBound,
boolean includeLowerBound,
boolean includeUpperBound)
Creates a new bin. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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?Method Detail |
---|
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)
equals
in class Object
obj
- the object (null
permitted).
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class Object
CloneNotSupportedException
- not thrown by this class.
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |