|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for objects which have an adjustable numeric value contained within a bounded range of values.
Field Summary | |
static int |
HORIZONTAL
The horizontal orientation. |
static int |
VERTICAL
The vertical orientation. |
Method Summary | |
void |
addAdjustmentListener(AdjustmentListener l)
Add a listener to recieve adjustment events when the value of the adjustable object changes. |
int |
getBlockIncrement()
Gets the block value increment for the adjustable object. |
int |
getMaximum()
Gets the maximum value of the adjustable object. |
int |
getMinimum()
Gets the minimum value of the adjustable object. |
int |
getOrientation()
Gets the orientation of the adjustable object. |
int |
getUnitIncrement()
Gets the unit value increment for the adjustable object. |
int |
getValue()
Gets the current value of the adjustable object. |
int |
getVisibleAmount()
Gets the length of the propertional indicator. |
void |
removeAdjustmentListener(AdjustmentListener l)
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 proportionl indicator of the adjustable object. |
Field Detail |
public static final int HORIZONTAL
public static final int VERTICAL
Method Detail |
public int getOrientation()
public void setMinimum(int min)
min
- the minimum valuepublic int getMinimum()
public void setMaximum(int max)
max
- the maximum valuepublic int getMaximum()
public void setUnitIncrement(int u)
u
- the unit incrementpublic int getUnitIncrement()
public void setBlockIncrement(int b)
b
- the block incrementpublic int getBlockIncrement()
public void setVisibleAmount(int v)
v
- the length of the indicatorpublic int getVisibleAmount()
public void setValue(int v)
v
- the current valuepublic int getValue()
public void addAdjustmentListener(AdjustmentListener l)
l
- the listener to recieve eventsAdjustmentEvent
public void removeAdjustmentListener(AdjustmentListener l)
l
- the listener being removedAdjustmentEvent
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |