Class FlatScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
com.formdev.flatlaf.ui.FlatScrollBarUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableLookupProvider, FlatStylingSupport.StyleableUI, LayoutManager, SwingConstants
public class FlatScrollBarUI
extends BasicScrollBarUI
implements FlatStylingSupport.StyleableUI, FlatStylingSupport.StyleableLookupProvider
Provides the Flat LaF UI delegate for
JScrollBar.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprivate classNested classes/interfaces inherited from class BasicScrollBarUI
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected Colorprotected Colorprotected Colorprivate MouseAdapterprotected booleanprotected Colorprotected booleanprotected booleanprotected Colorprivate booleanprivate static booleanprotected Dimensionprotected Colorprotected Colorprotected booleanprotected Colorprotected booleanprotected intprotected Insetsprotected intprotected InsetsFields inherited from class 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 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 voidapplyStyle(Object style) protected ObjectapplyStyleProperty(String key, Object value) protected JButtoncreateDecreaseButton(int orientation) protected JButtoncreateIncreaseButton(int orientation) protected PropertyChangeListenerstatic ComponentUIprotected Dimensionprotected DimensiongetStyleableValue(JComponent c, String key) booleanprotected ColorgetThumbColor(JComponent c, boolean hover, boolean pressed) protected ColorgetTrackColor(JComponent c, boolean hover, boolean pressed) protected voidprotected voidprotected voidvoidprotected booleanvoidpaint(Graphics g, JComponent c) protected voidprotected voidprotected voidpaintThumb(Graphics g, JComponent c, Rectangle thumbBounds) protected voidpaintTrack(Graphics g, JComponent c, Rectangle trackBounds) protected voidpaintTrackOrThumb(Graphics g, JComponent c, Rectangle bounds, Insets insets, int arc) protected voidprotected voidMethods inherited from class BasicScrollBarUI
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createModelListener, createScrollListener, createTrackListener, getMaximumSize, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, setThumbRollover, uninstallComponents, uninstallKeyboardActions, uninstallUIMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, update
-
Field Details
-
allowsAbsolutePositioning
protected boolean allowsAbsolutePositioning -
minimumButtonSize
- Since:
- 2.1
-
trackInsets
-
thumbInsets
-
trackArc
protected int trackArc -
thumbArc
protected int thumbArc -
hoverTrackColor
-
hoverThumbColor
-
hoverThumbWithTrack
protected boolean hoverThumbWithTrack -
pressedTrackColor
-
pressedThumbColor
-
pressedThumbWithTrack
protected boolean pressedThumbWithTrack -
showButtons
protected boolean showButtons -
arrowType
-
buttonArrowColor
-
buttonDisabledArrowColor
-
hoverButtonBackground
-
pressedButtonBackground
-
hoverListener
-
hoverTrack
protected boolean hoverTrack -
hoverThumb
protected boolean hoverThumb -
oldStyleValues
-
isAWTPeer
private boolean isAWTPeer -
isPressed
private static boolean isPressed
-
-
Constructor Details
-
FlatScrollBarUI
public FlatScrollBarUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicScrollBarUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicScrollBarUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicScrollBarUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicScrollBarUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicScrollBarUI
-
createPropertyChangeListener
- Overrides:
createPropertyChangeListenerin classBasicScrollBarUI
-
installStyle
protected void installStyle()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
-
getStyleableInfos
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
getLookupForStyling
- Specified by:
getLookupForStylingin interfaceFlatStylingSupport.StyleableLookupProvider- Since:
- 2.5
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicScrollBarUI
-
createDecreaseButton
- Overrides:
createDecreaseButtonin classBasicScrollBarUI
-
createIncreaseButton
- Overrides:
createIncreaseButtonin classBasicScrollBarUI
-
isShowButtons
protected boolean isShowButtons() -
paint
- Overrides:
paintin classBasicScrollBarUI
-
paintTrack
- Overrides:
paintTrackin classBasicScrollBarUI
-
paintThumb
- Overrides:
paintThumbin classBasicScrollBarUI
-
paintTrackOrThumb
protected void paintTrackOrThumb(Graphics g, JComponent c, Rectangle bounds, Insets insets, int arc) -
paintDecreaseHighlight
- Overrides:
paintDecreaseHighlightin classBasicScrollBarUI
-
paintIncreaseHighlight
- Overrides:
paintIncreaseHighlightin classBasicScrollBarUI
-
getTrackColor
-
getThumbColor
-
getMinimumThumbSize
- Overrides:
getMinimumThumbSizein classBasicScrollBarUI
-
getMaximumThumbSize
- Overrides:
getMaximumThumbSizein classBasicScrollBarUI
-
getSupportsAbsolutePositioning
public boolean getSupportsAbsolutePositioning()- Overrides:
getSupportsAbsolutePositioningin classBasicScrollBarUI
-