java.awt
Interface Adjustable

All Known Implementing Classes:
JScrollBar, Scrollbar, ScrollPaneAdjustable

public interface Adjustable

Unsafe:


Field Summary
static int HORIZONTAL
          Enabled: Indicates that the Adjustable has horizontal orientation.
static int NO_ORIENTATION
          Enabled: Indicates that the Adjustable has no orientation.
static int VERTICAL
          Enabled: Indicates that the Adjustable has vertical orientation.
 
Method Summary
 void addAdjustmentListener(AdjustmentListener l)
          Enabled: Adds a listener to receive adjustment events when the value of the adjustable object changes.
 int getBlockIncrement()
          Enabled: Gets the block value increment for the adjustable object.
 int getMaximum()
          Enabled: Gets the maximum value of the adjustable object.
 int getMinimum()
          Enabled: Gets the minimum value of the adjustable object.
 int getOrientation()
          Enabled: Gets the orientation of the adjustable object.
 int getUnitIncrement()
          Enabled: Gets the unit value increment for the adjustable object.
 int getValue()
          Enabled: Gets the current value of the adjustable object.
 int getVisibleAmount()
          Enabled: Gets the length of the proportional indicator.
 void removeAdjustmentListener(AdjustmentListener l)
          Enabled: Removes an adjustment listener.
 void setBlockIncrement(int b)
          Enabled: Sets the block value increment for the adjustable object.
 void setMaximum(int max)
          Enabled: Sets the maximum value of the adjustable object.
 void setMinimum(int min)
          Enabled: Sets the minimum value of the adjustable object.
 void setUnitIncrement(int u)
          Enabled: Sets the unit value increment for the adjustable object.
 void setValue(int v)
          Enabled: Sets the current value of the adjustable object.
 void setVisibleAmount(int v)
          Enabled: Sets the length of the proportional indicator of the adjustable object.
 

Field Detail

HORIZONTAL

public static final int HORIZONTAL
Enabled: Indicates that the Adjustable has horizontal orientation.


VERTICAL

public static final int VERTICAL
Enabled: Indicates that the Adjustable has vertical orientation.


NO_ORIENTATION

public static final int NO_ORIENTATION
Enabled: Indicates that the Adjustable has no orientation.

Method Detail

getOrientation

public int getOrientation()
Enabled: Gets the orientation of the adjustable object.

Returns:
the orientation of the adjustable object; either HORIZONTAL, VERTICAL, or NO_ORIENTATION

setMinimum

public void setMinimum(int min)
Enabled: Sets the minimum value of the adjustable object.

Parameters:
min - the minimum value

getMinimum

public int getMinimum()
Enabled: Gets the minimum value of the adjustable object.

Returns:
the minimum value of the adjustable object

setMaximum

public void setMaximum(int max)
Enabled: Sets the maximum value of the adjustable object.

Parameters:
max - the maximum value

getMaximum

public int getMaximum()
Enabled: Gets the maximum value of the adjustable object.

Returns:
the maximum value of the adjustable object

setUnitIncrement

public void setUnitIncrement(int u)
Enabled: Sets the unit value increment for the adjustable object.

Parameters:
u - the unit increment

getUnitIncrement

public int getUnitIncrement()
Enabled: Gets the unit value increment for the adjustable object.

Returns:
the unit value increment for the adjustable object

setBlockIncrement

public void setBlockIncrement(int b)
Enabled: Sets the block value increment for the adjustable object.

Parameters:
b - the block increment

getBlockIncrement

public int getBlockIncrement()
Enabled: Gets the block value increment for the adjustable object.

Returns:
the block value increment for the adjustable object

setVisibleAmount

public void setVisibleAmount(int v)
Enabled: Sets the length of the proportional indicator of the adjustable object.

Parameters:
v - the length of the indicator

getVisibleAmount

public int getVisibleAmount()
Enabled: Gets the length of the proportional indicator.

Returns:
the length of the proportional indicator

setValue

public void setValue(int v)
Enabled: Sets the current value of the adjustable object. This value must be within the range defined by the minimum and maximum values for this object.

Parameters:
v - the current value

getValue

public int getValue()
Enabled: Gets the current value of the adjustable object.

Returns:
the current value of the adjustable object

addAdjustmentListener

public void addAdjustmentListener(AdjustmentListener l)
Enabled: Adds a listener to receive adjustment events when the value of the adjustable object changes.

Parameters:
l - the listener to receive events
See Also:
AdjustmentEvent

removeAdjustmentListener

public void removeAdjustmentListener(AdjustmentListener l)
Enabled: Removes an adjustment listener.

Parameters:
l - the listener being removed
See Also:
AdjustmentEvent


comments?