public interface

Adjustable

java.awt.Adjustable
Known Indirect Subclasses

Class Overview

The interface for objects which have an adjustable numeric value contained within a bounded range of values.

Summary

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

Constants

public static final int HORIZONTAL

Indicates that the Adjustable has horizontal orientation.

Constant Value: 0 (0x00000000)

public static final int NO_ORIENTATION

Indicates that the Adjustable has no orientation.

Constant Value: 2 (0x00000002)

public static final int VERTICAL

Indicates that the Adjustable has vertical orientation.

Constant Value: 1 (0x00000001)

Public Methods

public abstract void addAdjustmentListener (AdjustmentListener l)

Adds a listener to receive adjustment events when the value of the adjustable object changes.

Parameters
l the listener to receive events
See Also

public abstract int getBlockIncrement ()

Gets the block value increment for the adjustable object.

Returns
  • the block value increment for the adjustable object

public abstract int getMaximum ()

Gets the maximum value of the adjustable object.

Returns
  • the maximum value of the adjustable object

public abstract int getMinimum ()

Gets the minimum value of the adjustable object.

Returns
  • the minimum value of the adjustable object

public abstract int getOrientation ()

Gets the orientation of the adjustable object.

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

public abstract int getUnitIncrement ()

Gets the unit value increment for the adjustable object.

Returns
  • the unit value increment for the adjustable object

public abstract int getValue ()

Gets the current value of the adjustable object.

Returns
  • the current value of the adjustable object

public abstract int getVisibleAmount ()

Gets the length of the proportional indicator.

Returns
  • the length of the proportional indicator

public abstract void removeAdjustmentListener (AdjustmentListener l)

Removes an adjustment listener.

Parameters
l the listener being removed
See Also

public abstract void setBlockIncrement (int b)

Sets the block value increment for the adjustable object.

Parameters
b the block increment

public abstract void setMaximum (int max)

Sets the maximum value of the adjustable object.

Parameters
max the maximum value

public abstract void setMinimum (int min)

Sets the minimum value of the adjustable object.

Parameters
min the minimum value

public abstract void setUnitIncrement (int u)

Sets the unit value increment for the adjustable object.

Parameters
u the unit increment

public abstract void setValue (int v)

Sets the current value of the adjustable object. If the value supplied is less than minimum or greater than maximum - visibleAmount, then one of those values is substituted, as appropriate.

Calling this method does not fire an AdjustmentEvent.

Parameters
v the current value, between minimum and maximum - visibleAmount

public abstract void setVisibleAmount (int v)

Sets the length of the proportional indicator of the adjustable object.

Parameters
v the length of the indicator