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 BasicSplitPaneUI
BasicSplitPaneUI.BasicHorizontalLayoutManager, BasicSplitPaneUI.BasicVerticalLayoutManager, BasicSplitPaneUI.FocusHandler, BasicSplitPaneUI.KeyboardDownRightHandler, BasicSplitPaneUI.KeyboardEndHandler, BasicSplitPaneUI.KeyboardHomeHandler, BasicSplitPaneUI.KeyboardResizeToggleHandler, BasicSplitPaneUI.KeyboardUpLeftHandler, BasicSplitPaneUI.PropertyHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Colorprotected Colorprotected Colorprotected ColorFields inherited from class 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 voidapplyStyle(Object style) protected ObjectapplyStyleProperty(String key, Object value) protected Componentprotected PropertyChangeListenerstatic ComponentUIvoidgetStyleableValue(JComponent c, String key) protected voidprotected voidvoidisTitleBarCaptionAt(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 voidpaintDragDivider(Graphics g, int dividerLocation) protected voidMethods inherited from class 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, uninstallUIMethods inherited from class 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:
installUIin classBasicSplitPaneUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicSplitPaneUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicSplitPaneUI
-
createPropertyChangeListener
- Overrides:
createPropertyChangeListenerin classBasicSplitPaneUI
-
createDefaultDivider
- Overrides:
createDefaultDividerin classBasicSplitPaneUI
-
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
-
createDefaultNonContinuousLayoutDivider
- Overrides:
createDefaultNonContinuousLayoutDividerin classBasicSplitPaneUI
-
finishedPaintingChildren
- Overrides:
finishedPaintingChildrenin classBasicSplitPaneUI
-
paintDragDivider
-
isTitleBarCaptionAt
Description copied from interface:FlatTitlePane.TitleBarCaptionHitTestInvoked 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.Note:
- This method is invoked often when mouse is moved over window title bar area and should therefore return quickly.
- This method is invoked on 'AWT-Windows' thread (not 'AWT-EventQueue' thread) while processing Windows messages. It must not change any component property or layout because this could cause a dead lock.
- Specified by:
isTitleBarCaptionAtin interfaceFlatTitlePane.TitleBarCaptionHitTest- Returns:
trueif the component is not interested in mouse input at the given locationfalseif the component wants process mouse input at the given locationnullif the component children should be checked- Since:
- 3.4
-