Spec-Zone .ru
спецификации, руководства, описания, API
JavaTM 2 Platform
Standard Edition

java.awt
Interface Adjustable

All Known Implementing Classes:
Scrollbar, JScrollBar

public interface Adjustable

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


Field Summary
static int HORIZONTAL
          The horizontal orientation.
static int VERTICAL
          The vertical orientation.
 
Method Summary
 void addAdjustmentListener(AdjustmentListener l)
          Add a listener to recieve adjustment events when the value of the adjustable object changes.
 int getBlockIncrement()
          Gets the block value increment for the adjustable object.
 int getMaximum()
          Gets the maximum value of the adjustable object.
 int getMinimum()
          Gets the minimum value of the adjustable object.
 int getOrientation()
          Gets the orientation of the adjustable object.
 int getUnitIncrement()
          Gets the unit value increment for the adjustable object.
 int getValue()
          Gets the current value of the adjustable object.
 int getVisibleAmount()
          Gets the length of the propertional indicator.
 void removeAdjustmentListener(AdjustmentListener l)
          Removes an adjustment listener.
 void setBlockIncrement(int b)
          Sets the block value increment for the adjustable object.
 void setMaximum(int max)
          Sets the maximum value of the adjustable object.
 void setMinimum(int min)
          Sets the minimum value of the adjustable object.
 void setUnitIncrement(int u)
          Sets the unit value increment for the adjustable object.
 void setValue(int v)
          Sets the current value of the adjustable object.
 void setVisibleAmount(int v)
          Sets the length of the proportionl indicator of the adjustable object.
 

Field Detail

HORIZONTAL

public static final int HORIZONTAL
The horizontal orientation.

VERTICAL

public static final int VERTICAL
The vertical orientation.
Method Detail

getOrientation

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

setMinimum

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

getMinimum

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

setMaximum

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

getMaximum

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

setUnitIncrement

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

getUnitIncrement

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

setBlockIncrement

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

getBlockIncrement

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

setVisibleAmount

public void setVisibleAmount(int v)
Sets the length of the proportionl indicator of the adjustable object.
Parameters:
v - the length of the indicator

getVisibleAmount

public int getVisibleAmount()
Gets the length of the propertional indicator.

setValue

public void setValue(int v)
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()
Gets the current value of the adjustable object.

addAdjustmentListener

public void addAdjustmentListener(AdjustmentListener l)
Add a listener to recieve adjustment events when the value of the adjustable object changes.
Parameters:
l - the listener to recieve events
See Also:
AdjustmentEvent

removeAdjustmentListener

public void removeAdjustmentListener(AdjustmentListener l)
Removes an adjustment listener.
Parameters:
l - the listener being removed
See Also:
AdjustmentEvent

JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.