|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.data.Range
Represents the visible range for an axis.
Constructor Summary | |
Range(double lower,
double upper)
Constructs a new axis range. |
Method Summary | |
static Range |
combine(Range range1,
Range range2)
Creates a new range by combining two existing ranges. |
boolean |
contains(double value)
Returns true if the range contains the specified value. |
double |
getCentralValue()
Returns the central value for the range. |
double |
getLength()
Returns the length of the range. |
double |
getLowerBound()
Returns the lower bound for the range. |
double |
getUpperBound()
Returns the upper bound for the range. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Range(double lower, double upper)
lower
- the lower bound.upper
- the upper bound.Method Detail |
public double getLowerBound()
public double getUpperBound()
public double getLength()
public double getCentralValue()
public boolean contains(double value)
value
- the value to lookup.
true
if the range contains the specified value.public static Range combine(Range range1, Range range2)
Note that:
range1
- the first range.range2
- the second range.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |