java.awt
Interface Adjustable
java.lang.Object
|
+--java.awt.Adjustable
public interface Adjustable
This interface is for objects that take a numeric value that can be
adjusted within a bounded range. For example, a scroll bar.
Since:Author:- Aaron M. Renn <arenn@urbanophile.com>
addAdjustmentListener
public void addAdjustmentListener(java.awt.event.AdjustmentListener listener)
Adds a listener that will receive adjustment events for this object.
Parameters:
See Also:
getBlockIncrement
public int getBlockIncrement()
Returns the increment value for incrementing the value by blocks.
Returns:
- the block increment value
getMaximum
public int getMaximum()
Returns the maximum value this object can have.
Returns:
getMinimum
public int getMinimum()
Returns the minimum value this object can have.
Returns:
getOrientation
public int getOrientation()
Returns a constant representing the orientation of the object.
Returns:
- the orientation of this object
See Also:
getUnitIncrement
public int getUnitIncrement()
Returns the increment value for incrementing the value by units.
Returns:
getValue
public int getValue()
Returns the current value of the object.
Returns:
getVisibleAmount
public int getVisibleAmount()
Returns the length of the indicator for this object.
Returns:
removeAdjustmentListener
public void removeAdjustmentListener(java.awt.event.AdjustmentListener listener)
Removes an adjustment listener from this object.
Parameters:
See Also:
setBlockIncrement
public void setBlockIncrement(int increment)
Sets the increment value for incrementing the value by blocks.
Parameters:
setMaximum
public void setMaximum(int maximum)
Sets the maximum value this object can have.
Parameters:
setMinimum
public void setMinimum(int minimum)
Sets the minimum value this object can have.
Parameters:
setUnitIncrement
public void setUnitIncrement(int increment)
Sets the increment value for incrementing the value by units.
Parameters:
setValue
public void setValue(int value)
Sets the current value of the object.
Parameters:
setVisibleAmount
public void setVisibleAmount(int length)
Sets the length of the indicator for this object to the specified value.
Parameters: