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 classstatic interfaceNested 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, trackRectFields 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 aSkinnableScrollBarUIthat query the givenSkinnableScrollBarUI.ScrollBarSkinProviderin order to get theScrollBarSkinduring the installation of this UI delegate. -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicScrollBarUI.TrackListenerprotected Dimensionprotected Rectangleprotected Rectangleprotected voidprotected voidvoidvoidlayoutContainer(Container scrollbarContainer) protected voidprotected voidprotected voidsetThumbBounds(int x, int y, int width, int height) protected voidMethods 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, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, update
-
Constructor Details
-
SkinnableScrollBarUI
Creates aSkinnableScrollBarUIthat query the givenSkinnableScrollBarUI.ScrollBarSkinProviderin order to get theScrollBarSkinduring the installation of this UI delegate.- Parameters:
scrollBarSkinProvider- the provider of theScrollBarSkin.
-
-
Method Details
-
installUI
- Overrides:
installUIin classBasicScrollBarUI
-
uninstallComponents
protected void uninstallComponents()- Overrides:
uninstallComponentsin classBasicScrollBarUI
-
installComponents
protected void installComponents()- Overrides:
installComponentsin classBasicScrollBarUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicScrollBarUI
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager- Overrides:
layoutContainerin classBasicScrollBarUI
-
getMinimumThumbSize
- Overrides:
getMinimumThumbSizein classBasicScrollBarUI
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicScrollBarUI
-
getThumbBounds
- Overrides:
getThumbBoundsin classBasicScrollBarUI
-
setThumbBounds
protected void setThumbBounds(int x, int y, int width, int height) - Overrides:
setThumbBoundsin classBasicScrollBarUI
-
getTrackBounds
- Overrides:
getTrackBoundsin classBasicScrollBarUI
-
paintIncreaseHighlight
- Overrides:
paintIncreaseHighlightin classBasicScrollBarUI
-
paintDecreaseHighlight
- Overrides:
paintDecreaseHighlightin classBasicScrollBarUI
-
createTrackListener
- Overrides:
createTrackListenerin classBasicScrollBarUI
-