Package com.formdev.flatlaf.ui
Class FlatToolBarSeparatorUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.SeparatorUI
-
- javax.swing.plaf.basic.BasicSeparatorUI
-
- javax.swing.plaf.basic.BasicToolBarSeparatorUI
-
- com.formdev.flatlaf.ui.FlatToolBarSeparatorUI
-
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
,PropertyChangeListener
,EventListener
public class FlatToolBarSeparatorUI extends BasicToolBarSeparatorUI implements FlatStylingSupport.StyleableUI, PropertyChangeListener
Provides the Flat LaF UI delegate forJToolBar.Separator
.- UiDefault:
- ToolBar.separatorWidth int, ToolBar.separatorColor Color
-
-
Field Summary
Fields Modifier and Type Field Description protected Color
separatorColor
protected int
separatorWidth
-
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI
highlight, shadow
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FlatToolBarSeparatorUI(boolean shared)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyStyle(Object style)
protected Object
applyStyleProperty(String key, Object value)
static ComponentUI
createUI(JComponent c)
Dimension
getMaximumSize(JComponent c)
Dimension
getPreferredSize(JComponent c)
Map<String,Class<?>>
getStyleableInfos(JComponent c)
Object
getStyleableValue(JComponent c, String key)
protected void
installDefaults(JSeparator c)
protected void
installListeners(JSeparator s)
protected void
installStyle(JSeparator s)
void
installUI(JComponent c)
void
paint(Graphics g, JComponent c)
void
propertyChange(PropertyChangeEvent e)
protected void
uninstallDefaults(JSeparator s)
protected void
uninstallListeners(JSeparator s)
-
Methods inherited from class javax.swing.plaf.basic.BasicSeparatorUI
getMinimumSize, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
-
-
-
Field Detail
-
separatorWidth
protected int separatorWidth
-
separatorColor
protected Color separatorColor
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in classBasicSeparatorUI
-
installDefaults
protected void installDefaults(JSeparator c)
- Overrides:
installDefaults
in classBasicToolBarSeparatorUI
-
uninstallDefaults
protected void uninstallDefaults(JSeparator s)
- Overrides:
uninstallDefaults
in classBasicSeparatorUI
-
installListeners
protected void installListeners(JSeparator s)
- Overrides:
installListeners
in classBasicSeparatorUI
-
uninstallListeners
protected void uninstallListeners(JSeparator s)
- Overrides:
uninstallListeners
in classBasicSeparatorUI
-
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Since:
- 2.0.1
-
installStyle
protected void installStyle(JSeparator s)
- Since:
- 2
-
applyStyle
protected void applyStyle(Object style)
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos(JComponent c)
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in classBasicToolBarSeparatorUI
-
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
getMaximumSize
in classBasicSeparatorUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paint
in classBasicToolBarSeparatorUI
-
-