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 ColorseparatorColorprotected intseparatorWidth-
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI
highlight, shadow
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFlatToolBarSeparatorUI(boolean shared)
-
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)static ComponentUIcreateUI(JComponent c)DimensiongetMaximumSize(JComponent c)DimensiongetPreferredSize(JComponent c)Map<String,Class<?>>getStyleableInfos(JComponent c)ObjectgetStyleableValue(JComponent c, String key)protected voidinstallDefaults(JSeparator c)protected voidinstallListeners(JSeparator s)protected voidinstallStyle(JSeparator s)voidinstallUI(JComponent c)voidpaint(Graphics g, JComponent c)voidpropertyChange(PropertyChangeEvent e)protected voiduninstallDefaults(JSeparator s)protected voiduninstallListeners(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:
installUIin classBasicSeparatorUI
-
installDefaults
protected void installDefaults(JSeparator c)
- Overrides:
installDefaultsin classBasicToolBarSeparatorUI
-
uninstallDefaults
protected void uninstallDefaults(JSeparator s)
- Overrides:
uninstallDefaultsin classBasicSeparatorUI
-
installListeners
protected void installListeners(JSeparator s)
- Overrides:
installListenersin classBasicSeparatorUI
-
uninstallListeners
protected void uninstallListeners(JSeparator s)
- Overrides:
uninstallListenersin classBasicSeparatorUI
-
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChangein 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:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classBasicToolBarSeparatorUI
-
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
getMaximumSizein classBasicSeparatorUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paintin classBasicToolBarSeparatorUI
-
-