Package com.formdev.flatlaf.ui
Class FlatSplitPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SplitPaneUI
javax.swing.plaf.basic.BasicSplitPaneUI
com.formdev.flatlaf.ui.FlatSplitPaneUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
,FlatTitlePane.TitleBarCaptionHitTest
public class FlatSplitPaneUI
extends BasicSplitPaneUI
implements FlatStylingSupport.StyleableUI, FlatTitlePane.TitleBarCaptionHitTest
Provides the Flat LaF UI delegate for
JSplitPane
.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class javax.swing.plaf.basic.BasicSplitPaneUI
BasicSplitPaneUI.BasicHorizontalLayoutManager, BasicSplitPaneUI.BasicVerticalLayoutManager, BasicSplitPaneUI.FocusHandler, BasicSplitPaneUI.KeyboardDownRightHandler, BasicSplitPaneUI.KeyboardEndHandler, BasicSplitPaneUI.KeyboardHomeHandler, BasicSplitPaneUI.KeyboardResizeToggleHandler, BasicSplitPaneUI.KeyboardUpLeftHandler, BasicSplitPaneUI.PropertyHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected Color
protected Color
protected Color
protected Color
Fields inherited from class javax.swing.plaf.basic.BasicSplitPaneUI
beginDragDividerLocation, divider, dividerResizeToggleKey, dividerSize, downKey, draggingHW, endKey, focusListener, homeKey, KEYBOARD_DIVIDER_MOVE_OFFSET, keyboardDownRightListener, keyboardEndListener, keyboardHomeListener, keyboardResizeToggleListener, keyboardUpLeftListener, layoutManager, leftKey, NON_CONTINUOUS_DIVIDER, nonContinuousLayoutDivider, propertyChangeListener, rightKey, splitPane, upKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyStyle
(Object style) protected Object
applyStyleProperty
(String key, Object value) protected Component
protected PropertyChangeListener
static ComponentUI
void
getStyleableValue
(JComponent c, String key) protected void
protected void
void
isTitleBarCaptionAt
(int x, int y) Invoked for a component that is enabled and has mouse listeners, to check whether it processes mouse input at the given x/y location.private void
paintDragDivider
(Graphics g, int dividerLocation) protected void
Methods inherited from class javax.swing.plaf.basic.BasicSplitPaneUI
createFocusListener, createKeyboardDownRightListener, createKeyboardEndListener, createKeyboardHomeListener, createKeyboardResizeToggleListener, createKeyboardUpLeftListener, dragDividerTo, finishDraggingTo, getDivider, getDividerBorderSize, getDividerLocation, getInsets, getLastDragLocation, getMaximumDividerLocation, getMaximumSize, getMinimumDividerLocation, getMinimumSize, getNonContinuousLayoutDivider, getOrientation, getPreferredSize, getSplitPane, installKeyboardActions, installListeners, isContinuousLayout, paint, resetLayoutManager, resetToPreferredSizes, setContinuousLayout, setDividerLocation, setLastDragLocation, setNonContinuousLayoutDivider, setNonContinuousLayoutDivider, setOrientation, startDragging, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
Field Details
-
arrowType
-
draggingColor
- Since:
- 3.3
-
oneTouchArrowColor
-
oneTouchHoverArrowColor
-
oneTouchPressedArrowColor
-
oldStyleValues
-
-
Constructor Details
-
FlatSplitPaneUI
public FlatSplitPaneUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classBasicSplitPaneUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicSplitPaneUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classBasicSplitPaneUI
-
createPropertyChangeListener
- Overrides:
createPropertyChangeListener
in classBasicSplitPaneUI
-
createDefaultDivider
- Overrides:
createDefaultDivider
in classBasicSplitPaneUI
-
installStyle
protected void installStyle()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
createDefaultNonContinuousLayoutDivider
- Overrides:
createDefaultNonContinuousLayoutDivider
in classBasicSplitPaneUI
-
finishedPaintingChildren
- Overrides:
finishedPaintingChildren
in classBasicSplitPaneUI
-
paintDragDivider
-
isTitleBarCaptionAt
Description copied from interface:FlatTitlePane.TitleBarCaptionHitTest
Invoked for a component that is enabled and has mouse listeners, to check whether it processes mouse input at the given x/y location. Useful for components that do not use mouse input on whole component bounds. E.g. a tabbed pane with a few tabs has some empty space beside the tabs that can be used to move the window.- Specified by:
isTitleBarCaptionAt
in interfaceFlatTitlePane.TitleBarCaptionHitTest
- Returns:
true
if the component is not interested in mouse input at the given locationfalse
if the component wants process mouse input at the given locationnull
if the component children should be checked- Since:
- 3.4
-