Package com.formdev.flatlaf.ui
Class FlatToolBarBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.plaf.basic.BasicBorders.MarginBorder
-
- com.formdev.flatlaf.ui.FlatMarginBorder
-
- com.formdev.flatlaf.ui.FlatToolBarBorder
-
- All Implemented Interfaces:
Serializable
,Border
,UIResource
public class FlatToolBarBorder extends FlatMarginBorder
Border forJToolBar
.- See Also:
- Serialized Form
- UiDefault:
- ToolBar.borderMargins Insets, ToolBar.gripColor Color
-
-
Constructor Summary
Constructors Constructor Description FlatToolBarBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Rectangle
calculateGripBounds(Component c, int x, int y, int width, int height)
Insets
getBorderInsets(Component c, Insets insets)
void
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
protected void
paintGrip(Component c, Graphics g, int x, int y, int width, int height)
-
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
-
-
-
-
Field Detail
-
gripColor
protected Color gripColor
-
-
Method Detail
-
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
-
calculateGripBounds
protected Rectangle calculateGripBounds(Component c, int x, int y, int width, int height)
-
getBorderInsets
public Insets getBorderInsets(Component c, Insets insets)
- Overrides:
getBorderInsets
in classFlatMarginBorder
-
-