Package com.formdev.flatlaf.ui
Class FlatButtonBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.plaf.basic.BasicBorders.MarginBorder
com.formdev.flatlaf.ui.FlatBorder
com.formdev.flatlaf.ui.FlatButtonBorder
- All Implemented Interfaces:
FlatStylingSupport.StyleableBorder
,Serializable
,Border
,UIResource
Border for
JButton
.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected Color
protected float
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected float
protected Insets
protected Insets
Fields inherited from class com.formdev.flatlaf.ui.FlatBorder
borderColor, borderWidth, customBorderColor, disabledBorderColor, errorBorderColor, errorFocusedBorderColor, focusColor, focusedBorderColor, focusWidth, innerFocusWidth, innerOutlineWidth, outline, outlineColor, outlineFocusedColor, warningBorderColor, warningFocusedBorderColor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Returns the (unscaled) arc diameter of the border corners.protected Paint
getBorderInsets
(Component c, Insets insets) protected float
Returns the (unscaled) line thickness used to paint the border.protected Color
protected int
Returns the (unscaled) thickness of the outer focus border.protected boolean
void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height) protected void
paintToolBarFocus
(Component c, Graphics g, int x, int y, int width, int height) Methods inherited from class com.formdev.flatlaf.ui.FlatBorder
applyStyleProperty, getInnerFocusWidth, getLineWidth, getOutlineColor, getStyleableInfos, getStyleableValue, isCellEditor, isEnabled
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
-
Field Details
-
arc
protected int arc -
endBorderColor
-
hoverBorderColor
-
pressedBorderColor
- Since:
- 3.5
-
selectedBorderColor
- Since:
- 3.5
-
disabledSelectedBorderColor
- Since:
- 3.5
-
focusedSelectedBorderColor
- Since:
- 3.5
-
hoverSelectedBorderColor
- Since:
- 3.5
-
pressedSelectedBorderColor
- Since:
- 3.5
-
defaultBorderWidth
protected float defaultBorderWidth -
defaultBorderColor
-
defaultEndBorderColor
-
defaultFocusedBorderColor
-
defaultFocusColor
-
defaultHoverBorderColor
-
defaultPressedBorderColor
- Since:
- 3.5
-
toolbarFocusWidth
protected float toolbarFocusWidth- Since:
- 1.4
-
toolbarFocusColor
- Since:
- 1.4
-
toolbarMargin
-
toolbarSpacingInsets
-
-
Constructor Details
-
FlatButtonBorder
public FlatButtonBorder()
-
-
Method Details
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classFlatBorder
-
paintToolBarFocus
- Since:
- 1.4
-
getFocusColor
- Overrides:
getFocusColor
in classFlatBorder
-
isFocused
- Overrides:
isFocused
in classFlatBorder
-
getBorderColor
- Overrides:
getBorderColor
in classFlatBorder
-
getBorderInsets
- Overrides:
getBorderInsets
in classFlatBorder
-
getFocusWidth
Description copied from class:FlatBorder
Returns the (unscaled) thickness of the outer focus border.- Overrides:
getFocusWidth
in classFlatBorder
-
getBorderWidth
Description copied from class:FlatBorder
Returns the (unscaled) line thickness used to paint the border. This may be different toFlatBorder.getLineWidth(java.awt.Component)
.- Overrides:
getBorderWidth
in classFlatBorder
-
getArc
Description copied from class:FlatBorder
Returns the (unscaled) arc diameter of the border corners.- Overrides:
getArc
in classFlatBorder
-