public interface Adjustable
Modifier and Type | Field and Description |
---|---|
static int |
HORIZONTAL
Constant for an adjustable object with horizontal orientation.
|
static int |
NO_ORIENTATION
Constant for an adjustable object with no orientation.
|
static int |
VERTICAL
Constant for an adjustable object with vertical orientation.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdjustmentListener(AdjustmentListener listener)
Adds a listener that will receive adjustment events for this object.
|
int |
getBlockIncrement()
Returns the increment value for incrementing the value by blocks.
|
int |
getMaximum()
Returns the maximum value this object can have.
|
int |
getMinimum()
Returns the minimum value this object can have.
|
int |
getOrientation()
Returns a constant representing the orientation of the object.
|
int |
getUnitIncrement()
Returns the increment value for incrementing the value by units.
|
int |
getValue()
Returns the current value of the object.
|
int |
getVisibleAmount()
Returns the length of the indicator for this object.
|
void |
removeAdjustmentListener(AdjustmentListener listener)
Removes an adjustment listener from this object.
|
void |
setBlockIncrement(int increment)
Sets the increment value for incrementing the value by blocks.
|
void |
setMaximum(int maximum)
Sets the maximum value this object can have.
|
void |
setMinimum(int minimum)
Sets the minimum value this object can have.
|
void |
setUnitIncrement(int increment)
Sets the increment value for incrementing the value by units.
|
void |
setValue(int value)
Sets the current value of the object.
|
void |
setVisibleAmount(int length)
Sets the length of the indicator for this object to the specified value.
|
static final int HORIZONTAL
static final int VERTICAL
static final int NO_ORIENTATION
int getOrientation()
HORIZONTAL
,
VERTICAL
,
NO_ORIENTATION
void setMinimum(int minimum)
minimum
- the new minimum valueint getMinimum()
void setMaximum(int maximum)
maximum
- the new maximum valueint getMaximum()
void setUnitIncrement(int increment)
increment
- the unit increment valueint getUnitIncrement()
void setBlockIncrement(int increment)
increment
- the block increment valueint getBlockIncrement()
void setVisibleAmount(int length)
length
- the indicator lengthint getVisibleAmount()
void setValue(int value)
value
- the new valueint getValue()
void addAdjustmentListener(AdjustmentListener listener)
listener
- the adjustment listener to addAdjustmentEvent
void removeAdjustmentListener(AdjustmentListener listener)
listener
- the adjustment listener to removeAdjustmentEvent