Class FlatScrollPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollPaneUI
javax.swing.plaf.basic.BasicScrollPaneUI
com.formdev.flatlaf.ui.FlatScrollPaneUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI, ScrollPaneConstants
Provides the Flat LaF UI delegate for
JScrollPane.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprivate classContainerListener is added to JViewport to keep focus listener on view up-to-date.Nested classes/interfaces inherited from class BasicScrollPaneUI
BasicScrollPaneUI.HSBChangeListener, BasicScrollPaneUI.MouseWheelHandler, BasicScrollPaneUI.PropertyChangeHandler, BasicScrollPaneUI.ViewportChangeHandler, BasicScrollPaneUI.VSBChangeListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AtomicBooleanprivate FlatScrollPaneUI.Handlerprotected BooleanFields inherited from class BasicScrollPaneUI
hsbChangeListener, scrollpane, spPropertyChangeListener, viewportChangeListener, vsbChangeListenerFields inherited from interface ScrollPaneConstants
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddViewportListeners(JViewport viewport) protected voidapplyStyle(Object style) protected ObjectapplyStyleProperty(String key, Object value) protected MouseWheelListenerprotected PropertyChangeListenerprotected FlatScrollPaneUI.FlatScrollPaneLayoutstatic ComponentUIprivate static floatgetBorderArc(JScrollPane scrollPane) private static intgetBorderLeftRightPadding(JScrollPane scrollPane) private FlatScrollPaneUI.HandlergetStyleableValue(JComponent c, String key) (package private) static ComponentgetView(JScrollPane scrollPane) protected voidprotected voidvoidprivate voidstatic booleanisPermanentFocusOwner(JScrollPane scrollPane) protected booleanprivate voidvoidpaint(Graphics g, JComponent c) private voidremoveViewportListeners(JViewport viewport) protected voidvoidvoidupdate(Graphics g, JComponent c) protected voidMethods inherited from class BasicScrollPaneUI
createHSBChangeListener, createViewportChangeListener, createVSBChangeListener, getBaseline, getBaselineResizeBehavior, getMaximumSize, installDefaults, installKeyboardActions, syncScrollPaneWithViewport, uninstallDefaults, uninstallKeyboardActions, updateColumnHeader, updateRowHeader, updateScrollBarDisplayPolicyMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMinimumSize, getPreferredSize
-
Field Details
-
showButtons
- Since:
- 2
-
handler
-
oldStyleValues
-
-
Constructor Details
-
FlatScrollPaneUI
public FlatScrollPaneUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicScrollPaneUI
-
installUIImpl
-
uninstallUI
- Overrides:
uninstallUIin classBasicScrollPaneUI
-
installListeners
- Overrides:
installListenersin classBasicScrollPaneUI
-
uninstallListeners
- Overrides:
uninstallListenersin classBasicScrollPaneUI
-
createScrollPaneLayout
- Since:
- 3.3
-
createMouseWheelListener
- Overrides:
createMouseWheelListenerin classBasicScrollPaneUI
-
isSmoothScrollingEnabled
protected boolean isSmoothScrollingEnabled() -
mouseWheelMovedSmooth
-
createPropertyChangeListener
- Overrides:
createPropertyChangeListenerin classBasicScrollPaneUI
-
getHandler
-
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
-
updateViewport
- Overrides:
updateViewportin classBasicScrollPaneUI
-
addViewportListeners
-
removeViewportListeners
-
update
- Overrides:
updatein classComponentUI
-
paint
- Overrides:
paintin classBasicScrollPaneUI
-
isPermanentFocusOwner
- Since:
- 1.3
-
getView
-
getBorderArc
-
getBorderLeftRightPadding
-