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
-
- Direct Known Subclasses:
FlatPopupMenuSeparatorUI
public class FlatSeparatorUI extends BasicSeparatorUI
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 Constructor Description FlatSeparatorUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUIcreateUI(JComponent c)DimensiongetPreferredSize(JComponent c)protected StringgetPropertyPrefix()protected voidinstallDefaults(JSeparator s)voidpaint(Graphics g, JComponent c)protected voiduninstallDefaults(JSeparator s)-
Methods inherited from class javax.swing.plaf.basic.BasicSeparatorUI
getMaximumSize, getMinimumSize, installListeners, installUI, uninstallListeners, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installDefaults
protected void installDefaults(JSeparator s)
- Overrides:
installDefaultsin classBasicSeparatorUI
-
uninstallDefaults
protected void uninstallDefaults(JSeparator s)
- Overrides:
uninstallDefaultsin classBasicSeparatorUI
-
getPropertyPrefix
protected String getPropertyPrefix()
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paintin classBasicSeparatorUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classBasicSeparatorUI
-
-