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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Colorprotected floatprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected floatprotected Insetsprotected InsetsFields inherited from class FlatBorder
borderColor, borderWidth, customBorderColor, disabledBorderColor, errorBorderColor, errorFocusedBorderColor, focusColor, focusedBorderColor, focusWidth, innerFocusWidth, innerOutlineWidth, outline, outlineColor, outlineFocusedColor, successBorderColor, successFocusedBorderColor, warningBorderColor, warningFocusedBorderColor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intReturns the (unscaled) arc diameter of the border corners.protected PaintgetBorderInsets(Component c, Insets insets) protected floatReturns the (unscaled) line thickness used to paint the border.protected Colorprotected intReturns the (unscaled) thickness of the outer focus border.protected booleanvoidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) protected voidpaintToolBarFocus(Component c, Graphics g, int x, int y, int width, int height) Methods inherited from class FlatBorder
applyStyleProperty, getInnerFocusWidth, getLineWidth, getOutlineColor, getStyleableInfos, getStyleableValue, isCellEditor, isEnabledMethods inherited from class 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:
paintBorderin interfaceBorder- Overrides:
paintBorderin classFlatBorder
-
paintToolBarFocus
-
getFocusColor
- Overrides:
getFocusColorin classFlatBorder
-
isFocused
- Overrides:
isFocusedin classFlatBorder
-
getBorderColor
- Overrides:
getBorderColorin classFlatBorder
-
getBorderInsets
- Overrides:
getBorderInsetsin classFlatBorder
-
getFocusWidth
Description copied from class:FlatBorderReturns the (unscaled) thickness of the outer focus border.- Overrides:
getFocusWidthin classFlatBorder
-
getBorderWidth
Description copied from class:FlatBorderReturns the (unscaled) line thickness used to paint the border. This may be different toFlatBorder.getLineWidth(Component).- Overrides:
getBorderWidthin classFlatBorder
-
getArc
Description copied from class:FlatBorderReturns the (unscaled) arc diameter of the border corners.- Overrides:
getArcin classFlatBorder
-