Class ModernTheme.ModernScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
privbot.ui.ModernTheme.ModernScrollBarUI
- All Implemented Interfaces:
LayoutManager,SwingConstants
- Enclosing class:
ModernTheme
Modern scroll bar UI.
-
Nested Class Summary
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, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidUses the theme border colour for the thumb and the sidebar colour for the track.protected JButtoncreateDecreaseButton(int orientation) A zero-size button: the bar has no arrow buttons.protected JButtoncreateIncreaseButton(int orientation) A zero-size button: the bar has no arrow buttons.protected voidpaintThumb(Graphics g, JComponent c, Rectangle thumbBounds) Paints a rounded thumb; nothing when disabled or empty.protected voidpaintTrack(Graphics g, JComponent c, Rectangle trackBounds) Fills the track with the track colour.Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI
addLayoutComponent, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, createUI, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getPreferredSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, update
-
Constructor Details
-
ModernScrollBarUI
public ModernScrollBarUI()
-
-
Method Details
-
configureScrollBarColors
protected void configureScrollBarColors()Uses the theme border colour for the thumb and the sidebar colour for the track.- Overrides:
configureScrollBarColorsin classBasicScrollBarUI
-
createDecreaseButton
A zero-size button: the bar has no arrow buttons.- Overrides:
createDecreaseButtonin classBasicScrollBarUI
-
createIncreaseButton
A zero-size button: the bar has no arrow buttons.- Overrides:
createIncreaseButtonin classBasicScrollBarUI
-
paintThumb
Paints a rounded thumb; nothing when disabled or empty.- Overrides:
paintThumbin classBasicScrollBarUI
-
paintTrack
Fills the track with the track colour.- Overrides:
paintTrackin classBasicScrollBarUI
-