| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ScrollPane sp = …;
Adjustable adj = sp.getVAdjustable();
Based on 30 examples
public interface Adjustable
The interface for objects which have an adjustable numeric value contained within a bounded range of values.
Field Summary | |
---|---|
static int |
HORIZONTAL
Indicates that the Adjustable has horizontal orientation. |
static int |
NO_ORIENTATION
Indicates that the Adjustable has no orientation. |
static int |
VERTICAL
Indicates that the Adjustable has vertical orientation. |
Method Summary | |
---|---|
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() Gets the current value of the adjustable object. |
int |
Gets the length of the proportional indicator. |
void |
Removes an adjustment listener. |
void |
setBlockIncrement(int b) Sets the block value increment for the adjustable object. |
void |
setMaximum(int max) Sets the maximum value of the adjustable object. |
void |
setMinimum(int min) Sets the minimum value of the adjustable object. |
void |
setUnitIncrement(int u) Sets the unit value increment for the adjustable object. |
void |
setValue(int v) Sets the current value of the adjustable object. |
void |
setVisibleAmount(int v) Sets the length of the proportional indicator of the adjustable object. |
Field Detail |
---|
public static final int HORIZONTAL
Adjustable
has horizontal orientation.
public static final int NO_ORIENTATION
Adjustable
has no orientation.
public static final int VERTICAL
Adjustable
has vertical orientation.
Method Detail |
---|
public void addAdjustmentListener(AdjustmentListener l)
l
- the listener to receive eventspublic int getBlockIncrement()
public int getMaximum()
public int getMinimum()
public int getOrientation()
HORIZONTAL
, VERTICAL
,
or NO_ORIENTATION
public int getUnitIncrement()
public int getValue()
public int getVisibleAmount()
public void removeAdjustmentListener(AdjustmentListener l)
l
- the listener being removedpublic void setBlockIncrement(int b)
b
- the block incrementpublic void setMaximum(int max)
max
- the maximum valuepublic void setMinimum(int min)
min
- the minimum valuepublic void setUnitIncrement(int u)
u
- the unit incrementpublic void setValue(int v)
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
public void setVisibleAmount(int v)
v
- the length of the indicator
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |