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 RectanglecalculateGripBounds(Component c, int x, int y, int width, int height)InsetsgetBorderInsets(Component c, Insets insets)voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height)protected voidpaintGrip(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:
paintBorderin interfaceBorder- Overrides:
paintBorderin classAbstractBorder
-
calculateGripBounds
protected Rectangle calculateGripBounds(Component c, int x, int y, int width, int height)
-
getBorderInsets
public Insets getBorderInsets(Component c, Insets insets)
- Overrides:
getBorderInsetsin classFlatMarginBorder
-
-