Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
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:

Method Summary

voidaddAdjustmentListener(java.awt.event.AdjustmentListener listener)

Adds a listener that will receive adjustment events for this object.
intgetBlockIncrement()

Returns the increment value for incrementing the value by blocks.
intgetMaximum()

Returns the maximum value this object can have.
intgetMinimum()

Returns the minimum value this object can have.
intgetOrientation()

Returns a constant representing the orientation of the object.
intgetUnitIncrement()

Returns the increment value for incrementing the value by units.
intgetValue()

Returns the current value of the object.
intgetVisibleAmount()

Returns the length of the indicator for this object.
voidremoveAdjustmentListener(java.awt.event.AdjustmentListener listener)

Removes an adjustment listener from this object.
voidsetBlockIncrement(int increment)

Sets the increment value for incrementing the value by blocks.
voidsetMaximum(int maximum)

Sets the maximum value this object can have.
voidsetMinimum(int minimum)

Sets the minimum value this object can have.
voidsetUnitIncrement(int increment)

Sets the increment value for incrementing the value by units.
voidsetValue(int value)

Sets the current value of the object.
voidsetVisibleAmount(int length)

Sets the length of the indicator for this object to the specified value.

Method Details

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:


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:

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: