Adjustable
, Serializable
public final class ScrollPaneAdjustable extends Object implements Adjustable, Serializable
ScrollPane
. Objects of this class are returned by ScrollPane
methods.HORIZONTAL, NO_ORIENTATION, VERTICAL
Modifier and Type | Method | Description |
---|---|---|
void |
addAdjustmentListener |
Adds the specified adjustment listener to receive adjustment events from this ScrollPaneAdjustable . |
AdjustmentListener[] |
getAdjustmentListeners() |
Returns an array of all the adjustment listeners registered on this ScrollPaneAdjustable . |
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() |
Returns the orientation of this scrollbar. |
int |
getUnitIncrement() |
Gets the unit value increment for the adjustable object. |
int |
getValue() |
Gets the current value of the adjustable object. |
boolean |
getValueIsAdjusting() |
Returns true if the value is in the process of changing as a result of actions being taken by the user. |
int |
getVisibleAmount() |
Gets the length of the proportional indicator. |
String |
paramString() |
Returns a string representing the state of this scrollbar. |
void |
removeAdjustmentListener |
Removes the specified adjustment listener so that it no longer receives adjustment events from this ScrollPaneAdjustable . |
void |
setBlockIncrement |
Sets the block value increment for the adjustable object. |
void |
setMaximum |
This method should NOT be called by user code. |
void |
setMinimum |
This method should NOT be called by user code. |
void |
setUnitIncrement |
Sets the unit value increment for the adjustable object. |
void |
setValue |
Sets the value of this scrollbar to the specified value. |
void |
setValueIsAdjusting |
Sets the valueIsAdjusting property. |
void |
setVisibleAmount |
This method should NOT be called by user code. |
String |
toString() |
Returns a string representation of this scrollbar and its values. |
public int getOrientation()
getOrientation
in interface Adjustable
Adjustable.HORIZONTAL
or Adjustable.VERTICAL
public void setMinimum(int min)
Adjustable
interface.setMinimum
in interface Adjustable
min
- the minimum valueAWTError
- Always throws an error when called.public int getMinimum()
Adjustable
getMinimum
in interface Adjustable
public void setMaximum(int max)
Adjustable
interface.setMaximum
in interface Adjustable
max
- the maximum valueAWTError
- Always throws an error when called.public int getMaximum()
Adjustable
getMaximum
in interface Adjustable
public void setUnitIncrement(int u)
Adjustable
setUnitIncrement
in interface Adjustable
u
- the unit incrementpublic int getUnitIncrement()
Adjustable
getUnitIncrement
in interface Adjustable
public void setBlockIncrement(int b)
Adjustable
setBlockIncrement
in interface Adjustable
b
- the block incrementpublic int getBlockIncrement()
Adjustable
getBlockIncrement
in interface Adjustable
public void setVisibleAmount(int v)
Adjustable
interface.setVisibleAmount
in interface Adjustable
v
- the length of the indicatorAWTError
- Always throws an error when called.public int getVisibleAmount()
Adjustable
getVisibleAmount
in interface Adjustable
public void setValueIsAdjusting(boolean b)
valueIsAdjusting
property.b
- new adjustment-in-progress statuspublic boolean getValueIsAdjusting()
valueIsAdjusting
propertypublic void setValue(int v)
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.
setValue
in interface Adjustable
v
- the new value of the scrollbarpublic int getValue()
Adjustable
getValue
in interface Adjustable
public void addAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable
. If l
is null
, no exception is thrown and no action is performed. Refer to AWT Threading Issues for details on AWT's threading model.
addAdjustmentListener
in interface Adjustable
l
- the adjustment listener.public void removeAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable
. If l
is null
, no exception is thrown and no action is performed. Refer to AWT Threading Issues for details on AWT's threading model.
removeAdjustmentListener
in interface Adjustable
l
- the adjustment listener.public AdjustmentListener[] getAdjustmentListeners()
ScrollPaneAdjustable
.ScrollPaneAdjustable
's AdjustmentListener
s or an empty array if no adjustment listeners are currently registeredpublic String toString()
public String paramString()
null
.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/ScrollPaneAdjustable.html