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 for
JSeparator
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
protected int
private final boolean
protected int
protected int
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI
highlight, shadow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyStyle
(JSeparator s, Object style) protected Object
applyStyleProperty
(JSeparator s, String key, Object value) static ComponentUI
protected String
getStyleableValue
(JComponent c, String key) (package private) String
protected void
protected void
protected void
void
void
paint
(Graphics g, JComponent c) void
protected void
protected void
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
-
Field Details
-
height
protected int height -
stripeWidth
protected int stripeWidth -
stripeIndent
protected int stripeIndent -
defaults_initialized
private boolean defaults_initialized -
oldStyleValues
-
-
Constructor Details
-
FlatSeparatorUI
protected FlatSeparatorUI(boolean shared) - Since:
- 2
-
-
Method Details
-
createUI
-
getPropertyPrefix
-
installUI
- Overrides:
installUI
in classBasicSeparatorUI
-
installDefaults
- Overrides:
installDefaults
in classBasicSeparatorUI
-
uninstallDefaults
- Overrides:
uninstallDefaults
in classBasicSeparatorUI
-
installListeners
- Overrides:
installListeners
in classBasicSeparatorUI
-
uninstallListeners
- Overrides:
uninstallListeners
in classBasicSeparatorUI
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Since:
- 2.0.1
-
installStyle
- Since:
- 2
-
getStyleType
String getStyleType()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
paint
- Overrides:
paint
in classBasicSeparatorUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classBasicSeparatorUI
-