public class ScrollPaneAdjustable extends Object implements Adjustable, Serializable
HORIZONTAL, NO_ORIENTATION, VERTICAL| Modifier and Type | Method and Description |
|---|---|
void |
addAdjustmentListener(AdjustmentListener listener)
Adds a listener that will receive adjustment events for this object.
|
AdjustmentListener[] |
getAdjustmentListeners() |
int |
getBlockIncrement()
Returns the increment value for incrementing the value by blocks.
|
int |
getMaximum()
Returns the maximum value this object can have.
|
int |
getMinimum()
Returns the minimum value this object can have.
|
int |
getOrientation()
Returns a constant representing the orientation of the object.
|
int |
getUnitIncrement()
Returns the increment value for incrementing the value by units.
|
int |
getValue()
Returns the current value of the object.
|
boolean |
getValueIsAdjusting()
Returns true if the value is in the process of changing.
|
int |
getVisibleAmount()
Returns the length of the indicator for this object.
|
String |
paramString() |
void |
removeAdjustmentListener(AdjustmentListener listener)
Removes an adjustment listener from this object.
|
void |
setBlockIncrement(int blockIncrement)
Sets the increment value for incrementing the value by blocks.
|
void |
setMaximum(int maximum)
This method should never be called.
|
void |
setMinimum(int minimum)
This method should never be called.
|
void |
setUnitIncrement(int unitIncrement)
Sets the increment value for incrementing the value by units.
|
void |
setValue(int value)
Sets the current value of the object.
|
void |
setValueIsAdjusting(boolean valueIsAdjusting)
Sets the value of valueIsAdjusting.
|
void |
setVisibleAmount(int visibleAmount)
This method should never be called.
|
String |
toString()
Convert this Object to a human-readable String.
|
public void addAdjustmentListener(AdjustmentListener listener)
AdjustableaddAdjustmentListener in interface Adjustablelistener - the adjustment listener to addAdjustmentEventpublic void removeAdjustmentListener(AdjustmentListener listener)
AdjustableremoveAdjustmentListener in interface Adjustablelistener - the adjustment listener to removeAdjustmentEventpublic AdjustmentListener[] getAdjustmentListeners()
public int getBlockIncrement()
AdjustablegetBlockIncrement in interface Adjustablepublic int getMaximum()
AdjustablegetMaximum in interface Adjustablepublic int getMinimum()
AdjustablegetMinimum in interface Adjustablepublic int getOrientation()
AdjustablegetOrientation in interface AdjustableAdjustable.HORIZONTAL,
Adjustable.VERTICAL,
Adjustable.NO_ORIENTATIONpublic int getUnitIncrement()
AdjustablegetUnitIncrement in interface Adjustablepublic int getValue()
AdjustablegetValue in interface Adjustablepublic int getVisibleAmount()
AdjustablegetVisibleAmount in interface Adjustablepublic void setBlockIncrement(int blockIncrement)
AdjustablesetBlockIncrement in interface AdjustableblockIncrement - the block increment valuepublic void setMaximum(int maximum) throws AWTError
setMaximum in interface Adjustablemaximum - The maximum value to be set.AWTError - Always throws this error when called.public void setMinimum(int minimum)
setMinimum in interface Adjustableminimum - The minimum value to be set.AWTError - Always throws this error when called.public void setUnitIncrement(int unitIncrement)
AdjustablesetUnitIncrement in interface AdjustableunitIncrement - the unit increment valuepublic void setValue(int value)
AdjustablesetValue in interface Adjustablevalue - the new valuepublic void setVisibleAmount(int visibleAmount)
setVisibleAmount in interface AdjustablevisibleAmount - The visible amount to be set.AWTError - Always throws this error when called.public String paramString()
public String toString()
ObjectSystem.out.println()
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)public boolean getValueIsAdjusting()
public void setValueIsAdjusting(boolean valueIsAdjusting)