|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jidesoft.range.AbstractRange<T>
com.jidesoft.range.AbstractNumericRange<java.lang.Double>
com.jidesoft.range.CombinedNumericRange
public class CombinedNumericRange
A little convenience class to compute the maximum and minimum values of multiple ranges.
| Field Summary |
|---|
| Fields inherited from interface com.jidesoft.range.Range |
|---|
PROPERTY_MAX, PROPERTY_MIN |
| Constructor Summary | |
|---|---|
CombinedNumericRange()
Using this constructor relies on the user subsequently calling add() to add a range |
|
| Method Summary | |
|---|---|
CombinedNumericRange |
add(Range<java.lang.Double> range)
Add a new range to this combined range. |
void |
adjust(java.lang.Double lower,
java.lang.Double upper)
Adjusts the range. |
boolean |
contains(java.lang.Double x)
This range contains some point iff one or more of its subranges contain that point |
java.lang.Double |
lower()
The lower value in the range; here, the same as minimum |
double |
maximum()
Lazily calculates the maximum value in the range |
double |
minimum()
Lazily calculates the minimum value in the range |
double |
size()
Compute the size of the range |
java.lang.Double |
upper()
The upper value in the range; here, the same as maximum() |
| Methods inherited from class com.jidesoft.range.AbstractRange |
|---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CombinedNumericRange()
| Method Detail |
|---|
public CombinedNumericRange add(Range<java.lang.Double> range)
range - the new range to add
public java.lang.Double lower()
minimum
public java.lang.Double upper()
maximum()
public void adjust(java.lang.Double lower,
java.lang.Double upper)
Range
lower - the new smallest value of the rangeupper - the new largest value of the rangepublic double maximum()
public double minimum()
public boolean contains(java.lang.Double x)
public double size()
Range
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||