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 forJSplitPane.- UiDefault:
- SplitPane.background Color, SplitPane.foreground Color unused, SplitPane.dividerSize int, SplitPane.border Border, SplitPaneDivider.border Border, SplitPaneDivider.draggingColor Color only used if continuousLayout is false , SplitPane.oneTouchButtonSize int, SplitPane.oneTouchButtonOffset int, SplitPane.centerOneTouchButtons boolean, SplitPane.supportsOneTouchButtons boolean optional; default is true , SplitPane.continuousLayout boolean , Component.arrowType String chevron (default) or triangle, SplitPaneDivider.hoverColor Color optional, SplitPaneDivider.pressedColor Color optional, SplitPaneDivider.oneTouchArrowColor Color, SplitPaneDivider.oneTouchHoverArrowColor Color, SplitPaneDivider.oneTouchPressedArrowColor Color, SplitPaneDivider.style String grip (default) or plain, SplitPaneDivider.gripColor Color, SplitPaneDivider.gripDotCount int, SplitPaneDivider.gripDotSize int, SplitPaneDivider.gripGap int
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classFlatSplitPaneUI.FlatSplitPaneDivider-
Nested 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
Fields Modifier and Type Field Description protected StringarrowTypeprotected ColordraggingColorprotected ColoroneTouchArrowColorprotected ColoroneTouchHoverArrowColorprotected ColoroneTouchPressedArrowColor-
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 Constructor Description FlatSplitPaneUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyStyle(Object style)protected ObjectapplyStyleProperty(String key, Object value)BasicSplitPaneDividercreateDefaultDivider()protected ComponentcreateDefaultNonContinuousLayoutDivider()protected PropertyChangeListenercreatePropertyChangeListener()static ComponentUIcreateUI(JComponent c)voidfinishedPaintingChildren(JSplitPane sp, Graphics g)Map<String,Class<?>>getStyleableInfos(JComponent c)ObjectgetStyleableValue(JComponent c, String key)protected voidinstallDefaults()protected voidinstallStyle()voidinstallUI(JComponent c)BooleanisTitleBarCaptionAt(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.protected voiduninstallDefaults()-
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
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUIin classBasicSplitPaneUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classBasicSplitPaneUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classBasicSplitPaneUI
-
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener()
- Overrides:
createPropertyChangeListenerin classBasicSplitPaneUI
-
createDefaultDivider
public BasicSplitPaneDivider createDefaultDivider()
- Overrides:
createDefaultDividerin classBasicSplitPaneUI
-
installStyle
protected void installStyle()
- Since:
- 2
-
applyStyle
protected void applyStyle(Object style)
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos(JComponent c)
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
createDefaultNonContinuousLayoutDivider
protected Component createDefaultNonContinuousLayoutDivider()
- Overrides:
createDefaultNonContinuousLayoutDividerin classBasicSplitPaneUI
-
finishedPaintingChildren
public void finishedPaintingChildren(JSplitPane sp, Graphics g)
- Overrides:
finishedPaintingChildrenin classBasicSplitPaneUI
-
isTitleBarCaptionAt
public Boolean isTitleBarCaptionAt(int x, int y)
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.- 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
-
-