public abstract interface Adjustable

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

public static final HORIZONTAL

Indicates that the Adjustable has horizontal orientation.

public static final NO_ORIENTATION

Indicates that the Adjustable has no orientation.

public static final VERTICAL

Indicates that the Adjustable has vertical orientation.

public void addAdjustmentListener(AdjustmentListener)

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

Parameters

AdjustmentListener l: the listener to receive events

public int getBlockIncrement()

Gets the block value increment for the adjustable object.

public int getMaximum()

Gets the maximum value of the adjustable object.

public int getMinimum()

Gets the minimum value of the adjustable object.

public int getOrientation()

Gets the orientation of the adjustable object.

public int getUnitIncrement()

Gets the unit value increment for the adjustable object.

public int getValue()

Gets the current value of the adjustable object.

public int getVisibleAmount()

Gets the length of the proportional indicator.

public void removeAdjustmentListener(AdjustmentListener)

Removes an adjustment listener.

Parameters

AdjustmentListener l: the listener being removed

public void setBlockIncrement(int)

Sets the block value increment for the adjustable object.

Parameters

int b: the block increment

public void setMaximum(int)

Sets the maximum value of the adjustable object.

Parameters

int max: the maximum value

public void setMinimum(int)

Sets the minimum value of the adjustable object.

Parameters

int min: the minimum value

public void setUnitIncrement(int)

Sets the unit value increment for the adjustable object.

Parameters

int u: the unit increment

public void setValue(int)

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

int v: the current value, between minimum and maximum - visibleAmount

public void setVisibleAmount(int)

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

Parameters

int v: the length of the indicator