Adjustable (Java SE 19 & JDK 19) (original) (raw)

All Known Implementing Classes:

[JScrollBar](../../javax/swing/JScrollBar.html "class in javax.swing"), [JScrollPane.ScrollBar](../../javax/swing/JScrollPane.ScrollBar.html "class in javax.swing"), [Scrollbar](Scrollbar.html "class in java.awt"), [ScrollPaneAdjustable](ScrollPaneAdjustable.html "class in java.awt")


public interface Adjustable

The interface for objects which have an adjustable numeric value contained within a bounded range of values.

Fields
static final int
Indicates that the Adjustable has horizontal orientation.
static final int
Indicates that the Adjustable has no orientation.
static final int
Indicates that the Adjustable has vertical orientation.

void
Adds a listener to receive adjustment events when the value of the adjustable object changes.
int
Gets the block value increment for the adjustable object.
int
Gets the maximum value of the adjustable object.
int
Gets the minimum value of the adjustable object.
int
Gets the orientation of the adjustable object.
int
Gets the unit value increment for the adjustable object.
int
[getValue](#getValue%28%29)()
Gets the current value of the adjustable object.
int
Gets the length of the proportional indicator.
void
Removes an adjustment listener.
void
[setBlockIncrement](#setBlockIncrement%28int%29)(int b)
Sets the block value increment for the adjustable object.
void
[setMaximum](#setMaximum%28int%29)(int max)
Sets the maximum value of the adjustable object.
void
[setMinimum](#setMinimum%28int%29)(int min)
Sets the minimum value of the adjustable object.
void
[setUnitIncrement](#setUnitIncrement%28int%29)(int u)
Sets the unit value increment for the adjustable object.
void
[setValue](#setValue%28int%29)(int v)
Sets the current value of the adjustable object.
void
[setVisibleAmount](#setVisibleAmount%28int%29)(int v)
Sets the length of the proportional indicator of the adjustable object.