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 int
height
protected int
stripeIndent
protected int
stripeWidth
-
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI
highlight, shadow
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FlatSeparatorUI(boolean shared)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyStyle(JSeparator s, Object style)
protected Object
applyStyleProperty(JSeparator s, String key, Object value)
static ComponentUI
createUI(JComponent c)
Dimension
getPreferredSize(JComponent c)
protected String
getPropertyPrefix()
Map<String,Class<?>>
getStyleableInfos(JComponent c)
Object
getStyleableValue(JComponent c, String key)
protected void
installDefaults(JSeparator s)
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
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:
installUI
in classBasicSeparatorUI
-
installDefaults
protected void installDefaults(JSeparator s)
- Overrides:
installDefaults
in classBasicSeparatorUI
-
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(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:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paint
in classBasicSeparatorUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in classBasicSeparatorUI
-
-