|
Modifier and Type |
Method and Description |
|
addAdjustmentListener |
void addAdjustmentListener(AdjustmentListener l)
Adds the specified adjustment listener to receive adjustment
events from this ScrollPaneAdjustable .
|
|
getAdjustmentListeners |
Returns an array of all the adjustment listeners
registered on this ScrollPaneAdjustable .
|
|
getBlockIncrement |
int getBlockIncrement()
Gets the block value increment for the adjustable object.
public int getBlockIncrement()
-
Gets the block value increment for the adjustable object.
- Specified by:
getBlockIncrement in interface Adjustable
- Returns:
- the block value increment for the adjustable object
|
|
getMaximum |
int getMaximum()
Gets the maximum value of the adjustable object.
public int getMaximum()
-
Gets the maximum value of the adjustable object.
- Specified by:
getMaximum in interface Adjustable
- Returns:
- the maximum value of the adjustable object
|
|
getMinimum |
int getMinimum()
Gets the minimum value of the adjustable object.
public int getMinimum()
-
Gets the minimum value of the adjustable object.
- Specified by:
getMinimum in interface Adjustable
- Returns:
- the minimum value of the adjustable object
|
|
getOrientation |
int getOrientation()
Returns the orientation of this scrollbar.
public int getOrientation()
-
Returns the orientation of this scrollbar.
- Specified by:
getOrientation in interface Adjustable
- Returns:
- the orientation of this scrollbar, either
Adjustable.HORIZONTAL or
Adjustable.VERTICAL
|
|
getUnitIncrement |
int getUnitIncrement()
Gets the unit value increment for the adjustable object.
public int getUnitIncrement()
-
Gets the unit value increment for the adjustable object.
- Specified by:
getUnitIncrement in interface Adjustable
- Returns:
- the unit value increment for the adjustable object
|
|
getValue |
int getValue()
Gets the current value of the adjustable object.
public int getValue()
-
Gets the current value of the adjustable object.
- Specified by:
getValue in interface Adjustable
- Returns:
- the current value of the adjustable object
|
|
getValueIsAdjusting |
boolean getValueIsAdjusting()
Returns true if the value is in the process of changing as a
result of actions being taken by the user.
public boolean getValueIsAdjusting()
-
Returns true if the value is in the process of changing as a
result of actions being taken by the user.
- Returns:
- the value of the
valueIsAdjusting property - See Also:
setValueIsAdjusting(boolean)
|
|
getVisibleAmount |
int getVisibleAmount()
Gets the length of the proportional indicator.
public int getVisibleAmount()
-
Gets the length of the proportional indicator.
- Specified by:
getVisibleAmount in interface Adjustable
- Returns:
- the length of the proportional indicator
|
|
paramString |
java.lang.String paramString()
Returns a string representing the state of this scrollbar.
public java.lang.String paramString()
-
Returns a string representing the state of this scrollbar.
This method is intended to be used only for debugging purposes,
and the content and format of the returned string may vary
between implementations. The returned string may be empty but
may not be null .
- Returns:
- the parameter string of this scrollbar.
|
|
removeAdjustmentListener |
void removeAdjustmentListener(AdjustmentListener l)
Removes the specified adjustment listener so that it no longer
receives adjustment events from this ScrollPaneAdjustable .
|
|
setBlockIncrement |
void setBlockIncrement(int b)
Sets the block value increment for the adjustable object.
public void setBlockIncrement(int b)
-
Sets the block value increment for the adjustable object.
- Specified by:
setBlockIncrement in interface Adjustable
- Parameters:
b - the block increment
|
|
setMaximum |
void setMaximum(int max)
This method should NOT be called by user code.
public void setMaximum(int max)
-
This method should NOT be called by user code.
This method is public for this class to properly implement
Adjustable interface.
- Specified by:
setMaximum in interface Adjustable
- Parameters:
max - the maximum value
- Throws:
AWTError - Always throws an error when called.
|
|
setMinimum |
void setMinimum(int min)
This method should NOT be called by user code.
public void setMinimum(int min)
-
This method should NOT be called by user code.
This method is public for this class to properly implement
Adjustable interface.
- Specified by:
setMinimum in interface Adjustable
- Parameters:
min - the minimum value
- Throws:
AWTError - Always throws an error when called.
|
|
setUnitIncrement |
void setUnitIncrement(int u)
Sets the unit value increment for the adjustable object.
public void setUnitIncrement(int u)
-
Sets the unit value increment for the adjustable object.
- Specified by:
setUnitIncrement in interface Adjustable
- Parameters:
u - the unit increment
|
|
setValue |
void setValue(int v)
Sets the value of this scrollbar to the specified value.
public void setValue(int v)
-
Sets the value of this scrollbar to the specified value.
If the value supplied is less than the current minimum or
greater than the current maximum, then one of those values is
substituted, as appropriate.
- Specified by:
setValue in interface Adjustable
- Parameters:
v - the new value of the scrollbar
|
|
setValueIsAdjusting |
void setValueIsAdjusting(boolean b)
Sets the valueIsAdjusting property.
public void setValueIsAdjusting(boolean b)
-
Sets the valueIsAdjusting property.
- Parameters:
b - new adjustment-in-progress status- Since:
- 1.4
- See Also:
getValueIsAdjusting()
|
|
setVisibleAmount |
void setVisibleAmount(int v)
This method should NOT be called by user code.
public void setVisibleAmount(int v)
-
This method should NOT be called by user code.
This method is public for this class to properly implement
Adjustable interface.
- Specified by:
setVisibleAmount in interface Adjustable
- Parameters:
v - the length of the indicator
- Throws:
AWTError - Always throws an error when called.
|
|
toString |
java.lang.String toString()
Returns a string representation of this scrollbar and its values.
public java.lang.String toString()
-
Returns a string representation of this scrollbar and its values.
- Overrides:
toString in class java.lang.Object
- Returns:
- a string representation of this scrollbar.
|