Save This Page
Home » openjdk-7 » java » awt » [javadoc | source]
java.awt
public interface: Adjustable [javadoc | source]

All Known Implementing Classes:
    JScrollBar, Scrollbar, ScrollBar, ScrollPaneAdjustable

The interface for objects which have an adjustable numeric value contained within a bounded range of values.
Field Summary
public static final  int HORIZONTAL    Indicates that the Adjustable has horizontal orientation. 
public static final  int VERTICAL    Indicates that the Adjustable has vertical orientation. 
public static final  int NO_ORIENTATION    Indicates that the Adjustable has no orientation. 
Method from java.awt.Adjustable Summary:
addAdjustmentListener,   getBlockIncrement,   getMaximum,   getMinimum,   getOrientation,   getUnitIncrement,   getValue,   getVisibleAmount,   removeAdjustmentListener,   setBlockIncrement,   setMaximum,   setMinimum,   setUnitIncrement,   setValue,   setVisibleAmount
Method from java.awt.Adjustable Detail:
 public  void addAdjustmentListener(AdjustmentListener l)
    Adds a listener to receive adjustment events when the value of the adjustable object changes.
 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 l)
    Removes an adjustment listener.
 public  void setBlockIncrement(int b)
    Sets the block value increment for the adjustable object.
 public  void setMaximum(int max)
    Sets the maximum value of the adjustable object.
 public  void setMinimum(int min)
    Sets the minimum value of the adjustable object.
 public  void setUnitIncrement(int u)
    Sets the unit value increment for the adjustable object.
 public  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.

 public  void setVisibleAmount(int v)
    Sets the length of the proportional indicator of the adjustable object.