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
,java.beans.PropertyChangeListener
,java.util.EventListener
- Direct Known Subclasses:
FlatPopupMenuSeparatorUI
public class FlatSeparatorUI extends javax.swing.plaf.basic.BasicSeparatorUI implements FlatStylingSupport.StyleableUI, java.beans.PropertyChangeListener
Provides the Flat LaF UI delegate forJSeparator
.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
defaults_initialized
protected int
height
private java.util.Map<java.lang.String,java.lang.Object>
oldStyleValues
private boolean
shared
protected int
stripeIndent
protected int
stripeWidth
-
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(javax.swing.JSeparator s, java.lang.Object style)
protected java.lang.Object
applyStyleProperty(javax.swing.JSeparator s, java.lang.String key, java.lang.Object value)
static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent c)
java.awt.Dimension
getPreferredSize(javax.swing.JComponent c)
protected java.lang.String
getPropertyPrefix()
java.util.Map<java.lang.String,java.lang.Class<?>>
getStyleableInfos(javax.swing.JComponent c)
java.lang.Object
getStyleableValue(javax.swing.JComponent c, java.lang.String key)
(package private) java.lang.String
getStyleType()
protected void
installDefaults(javax.swing.JSeparator s)
protected void
installListeners(javax.swing.JSeparator s)
protected void
installStyle(javax.swing.JSeparator s)
void
installUI(javax.swing.JComponent c)
void
paint(java.awt.Graphics g, javax.swing.JComponent c)
void
propertyChange(java.beans.PropertyChangeEvent e)
protected void
uninstallDefaults(javax.swing.JSeparator s)
protected void
uninstallListeners(javax.swing.JSeparator s)
-
Methods inherited from class javax.swing.plaf.basic.BasicSeparatorUI
getMaximumSize, getMinimumSize, uninstallUI
-
-
-
-
Field Detail
-
height
protected int height
-
stripeWidth
protected int stripeWidth
-
stripeIndent
protected int stripeIndent
-
shared
private final boolean shared
-
defaults_initialized
private boolean defaults_initialized
-
oldStyleValues
private java.util.Map<java.lang.String,java.lang.Object> oldStyleValues
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
getPropertyPrefix
protected java.lang.String getPropertyPrefix()
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in classjavax.swing.plaf.basic.BasicSeparatorUI
-
installDefaults
protected void installDefaults(javax.swing.JSeparator s)
- Overrides:
installDefaults
in classjavax.swing.plaf.basic.BasicSeparatorUI
-
uninstallDefaults
protected void uninstallDefaults(javax.swing.JSeparator s)
- Overrides:
uninstallDefaults
in classjavax.swing.plaf.basic.BasicSeparatorUI
-
installListeners
protected void installListeners(javax.swing.JSeparator s)
- Overrides:
installListeners
in classjavax.swing.plaf.basic.BasicSeparatorUI
-
uninstallListeners
protected void uninstallListeners(javax.swing.JSeparator s)
- Overrides:
uninstallListeners
in classjavax.swing.plaf.basic.BasicSeparatorUI
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
- Since:
- 2.0.1
-
installStyle
protected void installStyle(javax.swing.JSeparator s)
- Since:
- 2
-
getStyleType
java.lang.String getStyleType()
- Since:
- 2
-
applyStyle
protected void applyStyle(javax.swing.JSeparator s, java.lang.Object style)
- Since:
- 2
-
applyStyleProperty
protected java.lang.Object applyStyleProperty(javax.swing.JSeparator s, java.lang.String key, java.lang.Object value)
- Since:
- 2
-
getStyleableInfos
public java.util.Map<java.lang.String,java.lang.Class<?>> getStyleableInfos(javax.swing.JComponent c)
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
public java.lang.Object getStyleableValue(javax.swing.JComponent c, java.lang.String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
paint
in classjavax.swing.plaf.basic.BasicSeparatorUI
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in classjavax.swing.plaf.basic.BasicSeparatorUI
-
-