Package com.formdev.flatlaf.ui
Class FlatMenuBarBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.plaf.basic.BasicBorders.MarginBorder
-
- com.formdev.flatlaf.ui.FlatMarginBorder
-
- com.formdev.flatlaf.ui.FlatMenuBarBorder
-
- All Implemented Interfaces:
FlatStylingSupport.StyleableBorder
,Serializable
,Border
,UIResource
public class FlatMenuBarBorder extends FlatMarginBorder implements FlatStylingSupport.StyleableBorder
Border forJMenuBar
.- See Also:
- Serialized Form
- UiDefault:
- MenuBar.borderColor Color
-
-
Field Summary
Fields Modifier and Type Field Description protected Color
borderColor
-
Fields inherited from class com.formdev.flatlaf.ui.FlatMarginBorder
bottom, left, right, top
-
-
Constructor Summary
Constructors Constructor Description FlatMenuBarBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
applyStyleProperty(String key, Object value)
Insets
getBorderInsets(Component c, Insets insets)
Map<String,Class<?>>
getStyleableInfos()
Object
getStyleableValue(String key)
void
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
protected boolean
showBottomSeparator(Component c)
-
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
-
-
-
-
Field Detail
-
borderColor
protected Color borderColor
-
-
Method Detail
-
applyStyleProperty
public Object applyStyleProperty(String key, Object value)
- Specified by:
applyStyleProperty
in interfaceFlatStylingSupport.StyleableBorder
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos()
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableBorder
-
getStyleableValue
public Object getStyleableValue(String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableBorder
- Since:
- 2.5
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classAbstractBorder
-
getBorderInsets
public Insets getBorderInsets(Component c, Insets insets)
- Overrides:
getBorderInsets
in classFlatMarginBorder
-
showBottomSeparator
protected boolean showBottomSeparator(Component c)
- Since:
- 2
-
-