Package com.explodingpixels.widgets.plaf
Class SkinnableScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
com.explodingpixels.widgets.plaf.SkinnableScrollBarUI
- All Implemented Interfaces:
LayoutManager
,SwingConstants
- Direct Known Subclasses:
IAppScrollBarUI
An implementation of
ScrollBarUI
that supports dynamic skinning.
painting is delegated to a ScrollBarSkin
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
static interface
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollBarUI
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener
-
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicScrollBarUI
buttonListener, decrButton, DECREASE_HIGHLIGHT, decrGap, incrButton, INCREASE_HIGHLIGHT, incrGap, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollBarWidth, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRect
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
-
Constructor Summary
ConstructorsConstructorDescriptionSkinnableScrollBarUI
(SkinnableScrollBarUI.ScrollBarSkinProvider scrollBarSkinProvider) Creates aSkinnableScrollBarUI
that query the givenSkinnableScrollBarUI.ScrollBarSkinProvider
in order to get theScrollBarSkin
during the installation of this UI delegate. -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicScrollBarUI.TrackListener
protected Dimension
protected Rectangle
protected Rectangle
protected void
protected void
void
void
layoutContainer
(Container scrollbarContainer) protected void
protected void
protected void
setThumbBounds
(int x, int y, int width, int height) protected void
Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createDecreaseButton, createIncreaseButton, createModelListener, createPropertyChangeListener, createScrollListener, createUI, getMaximumSize, getMaximumThumbSize, getSupportsAbsolutePositioning, installDefaults, installKeyboardActions, isThumbRollover, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintThumb, paintTrack, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbRollover, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, update
-
Constructor Details
-
SkinnableScrollBarUI
Creates aSkinnableScrollBarUI
that query the givenSkinnableScrollBarUI.ScrollBarSkinProvider
in order to get theScrollBarSkin
during the installation of this UI delegate.- Parameters:
scrollBarSkinProvider
- the provider of theScrollBarSkin
.
-
-
Method Details
-
installUI
- Overrides:
installUI
in classBasicScrollBarUI
-
uninstallComponents
protected void uninstallComponents()- Overrides:
uninstallComponents
in classBasicScrollBarUI
-
installComponents
protected void installComponents()- Overrides:
installComponents
in classBasicScrollBarUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicScrollBarUI
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
- Overrides:
layoutContainer
in classBasicScrollBarUI
-
getMinimumThumbSize
- Overrides:
getMinimumThumbSize
in classBasicScrollBarUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classBasicScrollBarUI
-
getThumbBounds
- Overrides:
getThumbBounds
in classBasicScrollBarUI
-
setThumbBounds
protected void setThumbBounds(int x, int y, int width, int height) - Overrides:
setThumbBounds
in classBasicScrollBarUI
-
getTrackBounds
- Overrides:
getTrackBounds
in classBasicScrollBarUI
-
paintIncreaseHighlight
- Overrides:
paintIncreaseHighlight
in classBasicScrollBarUI
-
paintDecreaseHighlight
- Overrides:
paintDecreaseHighlight
in classBasicScrollBarUI
-
createTrackListener
- Overrides:
createTrackListener
in classBasicScrollBarUI
-