JScrollBar
, JScrollPane.ScrollBar
, Scrollbar
, ScrollPaneAdjustable
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
Gets the current value of the adjustable object.
int
Gets the length of the proportional indicator.
void
Removes an adjustment listener.
void
Sets the block value increment for the adjustable object.
void
Sets the maximum value of the adjustable object.
void
Sets the minimum value of the adjustable object.
void
Sets the unit value increment for the adjustable object.
void
Sets the current value of the adjustable object.
void
Sets the length of the proportional indicator of the adjustable object.
Indicates that the Adjustable
has horizontal orientation.
Indicates that the Adjustable
has vertical orientation.
Indicates that the Adjustable
has no orientation.
int getOrientation()
Gets the orientation of the adjustable object.
HORIZONTAL
, VERTICAL
, or NO_ORIENTATION
void setMinimum(int min)
Sets the minimum value of the adjustable object.
min
- the minimum value
int getMinimum()
Gets the minimum value of the adjustable object.
void setMaximum(int max)
Sets the maximum value of the adjustable object.
max
- the maximum value
int getMaximum()
Gets the maximum value of the adjustable object.
void setUnitIncrement(int u)
Sets the unit value increment for the adjustable object.
u
- the unit increment
int getUnitIncrement()
Gets the unit value increment for the adjustable object.
void setBlockIncrement(int b)
Sets the block value increment for the adjustable object.
b
- the block increment
int getBlockIncrement()
Gets the block value increment for the adjustable object.
void setVisibleAmount(int v)
Sets the length of the proportional indicator of the adjustable object.
v
- the length of the indicator
int getVisibleAmount()
Gets the length of the proportional indicator.
void setValue(int v)
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
int getValue()
Gets the current value of the adjustable object.
Adds a listener to receive adjustment events when the value of the adjustable object changes.
l
- the listener to receive events
Removes an adjustment listener.
l
- the listener being removed
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4