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
Border for
JToolBar
.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
protected Color
Fields inherited from class com.formdev.flatlaf.ui.FlatMarginBorder
bottom, left, right, top
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Rectangle
calculateGripBounds
(Component c, int x, int y, int width, int height) getBorderInsets
(Component c, Insets insets) (package private) static <T> T
Because this border is shared for all toolbars, get border specific style from FlatToolBarUI.void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height) protected void
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
-
Field Details
-
DOT_COUNT
private static final int DOT_COUNT- See Also:
-
DOT_SIZE
private static final int DOT_SIZE- See Also:
-
GRIP_SIZE
private static final int GRIP_SIZE- See Also:
-
gripColor
-
-
Constructor Details
-
FlatToolBarBorder
public FlatToolBarBorder()
-
-
Method Details
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classAbstractBorder
-
paintGrip
-
calculateGripBounds
-
getBorderInsets
- Overrides:
getBorderInsets
in classFlatMarginBorder
-
getStyleFromToolBarUI
Because this border is shared for all toolbars, get border specific style from FlatToolBarUI.
-