com.explodingpixels.widgets.plaf
public class SkinnableScrollBarUI extends BasicScrollBarUI
ScrollBarUI
that supports dynamic skinning.
painting is delegated to a ScrollBarSkin
.Modifier and Type | Class and Description |
---|---|
protected class |
SkinnableScrollBarUI.CustomArrowButtonListener |
static interface |
SkinnableScrollBarUI.ScrollBarSkinProvider |
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener
buttonListener, decrButton, DECREASE_HIGHLIGHT, incrButton, INCREASE_HIGHLIGHT, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, 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 and Description |
---|
SkinnableScrollBarUI(SkinnableScrollBarUI.ScrollBarSkinProvider scrollBarSkinProvider)
Creates a
SkinnableScrollBarUI that query the given SkinnableScrollBarUI.ScrollBarSkinProvider in
order to get the ScrollBarSkin during the installation of this UI delegate. |
Modifier and Type | Method and Description |
---|---|
protected BasicScrollBarUI.TrackListener |
createTrackListener() |
protected Dimension |
getMinimumThumbSize() |
Dimension |
getPreferredSize(JComponent c) |
protected Rectangle |
getThumbBounds() |
protected Rectangle |
getTrackBounds() |
protected void |
installComponents() |
protected void |
installListeners() |
void |
installUI(JComponent c) |
void |
layoutContainer(Container scrollbarContainer) |
protected void |
paintDecreaseHighlight(Graphics g) |
protected void |
paintIncreaseHighlight(Graphics g) |
protected void |
setThumbBounds(int x,
int y,
int width,
int height) |
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, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, update
public SkinnableScrollBarUI(SkinnableScrollBarUI.ScrollBarSkinProvider scrollBarSkinProvider)
SkinnableScrollBarUI
that query the given SkinnableScrollBarUI.ScrollBarSkinProvider
in
order to get the ScrollBarSkin
during the installation of this UI delegate.scrollBarSkinProvider
- the provider of the ScrollBarSkin
.public void installUI(JComponent c)
installUI
in class BasicScrollBarUI
protected void installComponents()
installComponents
in class BasicScrollBarUI
protected void installListeners()
installListeners
in class BasicScrollBarUI
public void layoutContainer(Container scrollbarContainer)
layoutContainer
in interface LayoutManager
layoutContainer
in class BasicScrollBarUI
protected Dimension getMinimumThumbSize()
getMinimumThumbSize
in class BasicScrollBarUI
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class BasicScrollBarUI
protected Rectangle getThumbBounds()
getThumbBounds
in class BasicScrollBarUI
protected void setThumbBounds(int x, int y, int width, int height)
setThumbBounds
in class BasicScrollBarUI
protected Rectangle getTrackBounds()
getTrackBounds
in class BasicScrollBarUI
protected void paintIncreaseHighlight(Graphics g)
paintIncreaseHighlight
in class BasicScrollBarUI
protected void paintDecreaseHighlight(Graphics g)
paintDecreaseHighlight
in class BasicScrollBarUI
protected BasicScrollBarUI.TrackListener createTrackListener()
createTrackListener
in class BasicScrollBarUI