|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface IntegerRangeInterface
The IntegerRangeInterface interface is used by objects which have an adjustable interger value contained within a bounded range of values.
| Method Summary | |
|---|---|
abstract int |
getBlockIncrement()
Deprecated. Gets the block value increment for the range object. |
abstract int |
getMaximum()
Deprecated. Gets the maximum value of the range object. |
abstract int |
getMinimum()
Deprecated. Gets the minimum value of the range object. |
abstract int |
getUnitIncrement()
Deprecated. Gets the unit value increment for the range object. |
abstract int |
getValue()
Deprecated. Gets the current value of the range object. |
abstract java.lang.Number |
incrementBy(int increment,
int incrementType)
Deprecated. Increment, by unit or block increment amount, the current value by the specified number of increments. |
abstract void |
setBlockIncrement(int block)
Deprecated. Sets the block value increment for the range object. |
abstract void |
setMaximum(int max)
Deprecated. Sets the maximum value of the range object. |
abstract void |
setMinimum(int min)
Deprecated. Sets the minimum value of the range object. |
abstract void |
setUnitIncrement(int unit)
Deprecated. Sets the unit value increment for the range object. |
abstract void |
setValue(int value)
Deprecated. Sets the current value of the range object. |
abstract void |
setValues(int value,
int min,
int max)
Deprecated. Set the value, minimum and maximum at the same time. |
abstract void |
setValues(int value,
int unit,
int block,
int min,
int max)
Deprecated. Set the value, minimum and maximum at the same time. |
| Method Detail |
|---|
int getBlockIncrement()
int getMaximum()
int getMinimum()
int getUnitIncrement()
int getValue()
java.lang.Number incrementBy(int increment,
int incrementType)
increment - The number of incrementType(unit or block) amounts to increment
the current value by.incrementType - UNIT to increment by the unit amount;
BLOCK to increment by the block amount
void setBlockIncrement(int block)
block - the block incrementvoid setMaximum(int max)
max - the maximum valuevoid setMinimum(int min)
min - the minimum valuevoid setUnitIncrement(int unit)
unit - the unit incrementvoid setValue(int value)
value - the current value
void setValues(int value,
int min,
int max)
value - the new valuemin - the new minimummax - the new maximum
java.lang.IllegalArgumentException - if (min > max), (unit < 0),
(block < 0), (unit > range) or (block > range),
where range = (max - min)
void setValues(int value,
int unit,
int block,
int min,
int max)
value - the new valueunit - the new unit incrementblock - the new block incrementmin - the new minimummax - the new maximum
java.lang.IllegalArgumentException - if (min > max), (unit < 0),
(block < 0), (unit > range) or (block > range),
where range = (max - min)
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||