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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprotected ColorFields inherited from class FlatMarginBorder
bottom, left, right, top -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RectanglecalculateGripBounds(Component c, int x, int y, int width, int height) getBorderInsets(Component c, Insets insets) (package private) static <T> TgetStyleFromToolBarUI(Component c, Function<FlatToolBarUI, T> f) Because this border is shared for all toolbars, get border specific style from FlatToolBarUI.voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) protected voidMethods inherited from class 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:
paintBorderin interfaceBorder- Overrides:
paintBorderin classAbstractBorder
-
paintGrip
-
calculateGripBounds
-
getBorderInsets
- Overrides:
getBorderInsetsin classFlatMarginBorder
-
getStyleFromToolBarUI
Because this border is shared for all toolbars, get border specific style from FlatToolBarUI.
-