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.
- 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
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intFields inherited from class BasicSeparatorUI
highlight, shadow -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyStyle(JSeparator s, Object style) protected ObjectapplyStyleProperty(JSeparator s, String key, Object value) static ComponentUIprotected StringgetStyleableValue(JComponent c, String key) protected voidprotected voidprotected voidvoidvoidpaint(Graphics g, JComponent c) voidprotected voidprotected voidMethods inherited from class BasicSeparatorUI
getMaximumSize, getMinimumSize, uninstallUIMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
Field Details
-
height
protected int height -
stripeWidth
protected int stripeWidth -
stripeIndent
protected int stripeIndent
-
-
Constructor Details
-
FlatSeparatorUI
protected FlatSeparatorUI(boolean shared) - Since:
- 2
-
-
Method Details
-
createUI
-
getPropertyPrefix
-
installUI
- Overrides:
installUIin classBasicSeparatorUI
-
installDefaults
- Overrides:
installDefaultsin classBasicSeparatorUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classBasicSeparatorUI
-
installListeners
- Overrides:
installListenersin classBasicSeparatorUI
-
uninstallListeners
- Overrides:
uninstallListenersin classBasicSeparatorUI
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener- Since:
- 2.0.1
-
installStyle
- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
paint
- Overrides:
paintin classBasicSeparatorUI
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicSeparatorUI
-