java.awt.Adjustable |
![]() |
The interface for objects which have an adjustable numeric value contained within a bounded range of values.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | HORIZONTAL | Indicates that the Adjustable has horizontal orientation. |
|||||||||
int | NO_ORIENTATION | Indicates that the Adjustable has no orientation. |
|||||||||
int | VERTICAL | Indicates that the Adjustable has vertical orientation. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a listener to receive adjustment events when the value of
the adjustable object changes.
| |||||||||||
Gets the block value increment for the adjustable object.
| |||||||||||
Gets the maximum value of the adjustable object.
| |||||||||||
Gets the minimum value of the adjustable object.
| |||||||||||
Gets the orientation of the adjustable object.
| |||||||||||
Gets the unit value increment for the adjustable object.
| |||||||||||
Gets the current value of the adjustable object.
| |||||||||||
Gets the length of the proportional indicator.
| |||||||||||
Removes an adjustment listener.
| |||||||||||
Sets the block value increment for the adjustable object.
| |||||||||||
Sets the maximum value of the adjustable object.
| |||||||||||
Sets the minimum value of the adjustable object.
| |||||||||||
Sets the unit value increment for the adjustable object.
| |||||||||||
Sets the current value of the adjustable object.
| |||||||||||
Sets the length of the proportional indicator of the
adjustable object.
|
Indicates that the Adjustable
has horizontal orientation.
Indicates that the Adjustable
has no orientation.
Indicates that the Adjustable
has vertical orientation.
Adds a listener to receive adjustment events when the value of the adjustable object changes.
l | the listener to receive events |
---|
Gets the block value increment for the adjustable object.
Gets the maximum value of the adjustable object.
Gets the minimum value of the adjustable object.
Gets the orientation of the adjustable object.
HORIZONTAL
, VERTICAL
,
or NO_ORIENTATION
Gets the unit value increment for the adjustable object.
Gets the current value of the adjustable object.
Gets the length of the proportional indicator.
Sets the block value increment for the adjustable object.
b | the block increment |
---|
Sets the maximum value of the adjustable object.
max | the maximum value |
---|
Sets the minimum value of the adjustable object.
min | the minimum value |
---|
Sets the unit value increment for the adjustable object.
u | the unit increment |
---|
Sets the current value of the adjustable object. If
the value supplied is less than minimum
or greater than maximum
- visibleAmount
,
then one of those values is substituted, as appropriate.
Calling this method does not fire an
AdjustmentEvent
.
v | the current value, between minimum
and maximum - visibleAmount
|
---|
Sets the length of the proportional indicator of the adjustable object.
v | the length of the indicator |
---|