|
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 | |
---|---|
int |
getBlockIncrement()
Deprecated. Gets the block value increment for the range object. |
int |
getMaximum()
Deprecated. Gets the maximum value of the range object. |
int |
getMinimum()
Deprecated. Gets the minimum value of the range object. |
int |
getUnitIncrement()
Deprecated. Gets the unit value increment for the range object. |
int |
getValue()
Deprecated. Gets the current value of the range object. |
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. |
void |
setBlockIncrement(int block)
Deprecated. Sets the block value increment for the range object. |
void |
setMaximum(int max)
Deprecated. Sets the maximum value of the range object. |
void |
setMinimum(int min)
Deprecated. Sets the minimum value of the range object. |
void |
setUnitIncrement(int unit)
Deprecated. Sets the unit value increment for the range object. |
void |
setValue(int value)
Deprecated. Sets the current value of the range object. |
void |
setValues(int value,
int min,
int max)
Deprecated. Set the value, minimum and maximum at the same time. |
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 valuevoid 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 |