Package com.formdev.flatlaf.ui
Class FlatSeparatorUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.SeparatorUI
-
- javax.swing.plaf.basic.BasicSeparatorUI
-
- com.formdev.flatlaf.ui.FlatSeparatorUI
-
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI,PropertyChangeListener,EventListener
- Direct Known Subclasses:
FlatPopupMenuSeparatorUI
public class FlatSeparatorUI extends BasicSeparatorUI implements FlatStylingSupport.StyleableUI, PropertyChangeListener
Provides the Flat LaF UI delegate forJSeparator.- UiDefault:
- Separator.background Color unused, Separator.foreground Color , Separator.height int height (or width) of the component; may be larger than stripe, Separator.stripeWidth int width of the stripe, Separator.stripeIndent int indent of stripe from top (or left); allows positioning of stripe within component
-
-
Field Summary
Fields Modifier and Type Field Description protected intheightprotected intstripeIndentprotected intstripeWidth-
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI
highlight, shadow
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFlatSeparatorUI(boolean shared)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyStyle(JSeparator s, Object style)protected ObjectapplyStyleProperty(JSeparator s, String key, Object value)static ComponentUIcreateUI(JComponent c)DimensiongetPreferredSize(JComponent c)protected StringgetPropertyPrefix()Map<String,Class<?>>getStyleableInfos(JComponent c)ObjectgetStyleableValue(JComponent c, String key)protected voidinstallDefaults(JSeparator s)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
getMaximumSize, getMinimumSize, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
getPropertyPrefix
protected String getPropertyPrefix()
-
installUI
public void installUI(JComponent c)
- Overrides:
installUIin classBasicSeparatorUI
-
installDefaults
protected void installDefaults(JSeparator s)
- Overrides:
installDefaultsin classBasicSeparatorUI
-
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(JSeparator s, Object style)
- Since:
- 2
-
applyStyleProperty
protected Object applyStyleProperty(JSeparator s, String key, Object value)
- 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
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paintin classBasicSeparatorUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classBasicSeparatorUI
-
-