|
||||||||||
| 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.NumericRange
public class NumericRange
Specifies upper and lower bounds for a range of values
| Field Summary | |
|---|---|
protected double |
_max
|
protected double |
_min
|
| Fields inherited from interface com.jidesoft.range.Range |
|---|
PROPERTY_MAX, PROPERTY_MIN |
| Constructor Summary | |
|---|---|
NumericRange()
Creates a numeric range with minimum 0.0 and maximum of 1.0 |
|
NumericRange(double min,
double max)
Create a numeric range by supplying minimum and maximum values |
|
| Method Summary | |
|---|---|
void |
adjust(java.lang.Double lower,
java.lang.Double upper)
Adjusts the range. |
boolean |
contains(java.lang.Double x)
Determines whether the range contains the supplied value |
boolean |
equals(java.lang.Object other)
Test for equality based on the values of min and max |
double |
getMax()
|
double |
getMin()
|
java.lang.Double |
lower()
|
double |
maximum()
This may be the numeric representation of upper() or it may be rounded up. |
double |
minimum()
This may be the numeric representation of lower() or it may be rounded down. |
void |
setMax(double max)
Sets the maximum value |
void |
setMin(double min)
Sets the minimum value |
double |
size()
Compute the size of the range |
java.lang.String |
toString()
|
java.lang.Double |
upper()
|
| Methods inherited from class com.jidesoft.range.AbstractRange |
|---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double _min
protected double _max
| Constructor Detail |
|---|
public NumericRange()
public NumericRange(double min,
double max)
min - the minumummax - the maximum| Method Detail |
|---|
public double minimum()
Range
public double maximum()
Range
public double getMin()
public void setMin(double min)
min - the new minimum value.public double getMax()
public void setMax(double max)
max - the new maximum value.public double size()
Range
public java.lang.Double lower()
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 java.lang.Double upper()
public boolean contains(java.lang.Double x)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||