|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Range<T>
| Field Summary | |
|---|---|
static String |
PROPERTY_MAX
The name of the maximum property. |
static String |
PROPERTY_MIN
The name of the minimum property. |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
You can add a property change listener if you are interested to know when the range changes |
void |
adjust(T lower,
T upper)
Adjusts the range. |
boolean |
contains(T x)
Determines whether the supplied point lies within this range. |
T |
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 |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener |
double |
size()
Compute the size of the range |
T |
upper()
|
| Field Detail |
|---|
static final String PROPERTY_MIN
static final String PROPERTY_MAX
| Method Detail |
|---|
T lower()
T upper()
void adjust(T lower,
T upper)
lower - the new smallest value of the rangeupper - the new largest value of the rangedouble minimum()
double maximum()
double size()
boolean contains(T x)
contains() method is more like a set membership test.
x -
void addPropertyChangeListener(PropertyChangeListener listener)
listener - the new property change listenervoid removePropertyChangeListener(PropertyChangeListener listener)
listener - the PropertyChangeListener to remove
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||