LayoutManager
, SwingConstants
public class MetalScrollBarUI extends BasicScrollBarUI
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener
Modifier and Type | Field | Description |
---|---|---|
protected MetalScrollButton |
decreaseButton |
The decrease button. |
static final String |
FREE_STANDING_PROP |
The property JScrollBar.isFreeStanding . |
protected MetalScrollButton |
increaseButton |
The increase button. |
protected boolean |
isFreeStanding |
The value of the property JScrollBar.isFreeStanding . |
protected int |
scrollBarWidth |
The width of the scroll bar. |
buttonListener, decrButton, DECREASE_HIGHLIGHT, decrGap, incrButton, INCREASE_HIGHLIGHT, incrGap, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbDarkShadowColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRect
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor | Description |
---|---|
MetalScrollBarUI() |
Constructs a MetalScrollBarUI . |
Modifier and Type | Method | Description |
---|---|---|
protected JButton |
createDecreaseButton |
Returns the view that represents the decrease view. |
protected JButton |
createIncreaseButton |
Returns the view that represents the increase view. |
static ComponentUI |
createUI |
Constructs a new MetalScrollBarUI instance. |
protected void |
setThumbBounds |
This is overridden only to increase the invalid area. |
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getPreferredSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paintDecreaseHighlight, paintIncreaseHighlight, paintThumb, paintTrack, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, paint, update
protected MetalScrollButton increaseButton
protected MetalScrollButton decreaseButton
protected int scrollBarWidth
public static final String FREE_STANDING_PROP
JScrollBar.isFreeStanding
.protected boolean isFreeStanding
JScrollBar.isFreeStanding
.public MetalScrollBarUI()
MetalScrollBarUI
.public static ComponentUI createUI(JComponent c)
MetalScrollBarUI
instance.c
- a componentMetalScrollBarUI
instanceprotected JButton createDecreaseButton(int orientation)
createDecreaseButton
in class BasicScrollBarUI
orientation
- the orientationprotected JButton createIncreaseButton(int orientation)
createIncreaseButton
in class BasicScrollBarUI
orientation
- the orientationprotected void setThumbBounds(int x, int y, int width, int height)
setThumbBounds
in class BasicScrollBarUI
x
- set the x location of the thumby
- set the y location of the thumbwidth
- set the width of the thumbheight
- set the height of the thumb
© 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/javax/swing/plaf/metal/MetalScrollBarUI.html