Package com.formdev.flatlaf.ui
Class FlatRoundBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.plaf.basic.BasicBorders.MarginBorder
com.formdev.flatlaf.ui.FlatBorder
com.formdev.flatlaf.ui.FlatRoundBorder
- All Implemented Interfaces:
FlatStylingSupport.StyleableBorder
,Serializable
,Border
,UIResource
- Direct Known Subclasses:
FlatDatePickerBorder
Border for various components (e.g.
JComboBox
).- See Also:
-
Field Summary
FieldsFields 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.private boolean
void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height) Methods inherited from class com.formdev.flatlaf.ui.FlatBorder
applyStyleProperty, getBorderColor, getBorderInsets, getBorderWidth, getFocusColor, getFocusWidth, getInnerFocusWidth, getLineWidth, getOutlineColor, getStyleableInfos, getStyleableValue, isCellEditor, isEnabled, isFocused
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
-
Field Details
-
arc
protected int arc -
roundRect
- Since:
- 2
-
-
Constructor Details
-
FlatRoundBorder
public FlatRoundBorder()
-
-
Method Details
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classFlatBorder
-
getArc
Description copied from class:FlatBorder
Returns the (unscaled) arc diameter of the border.- Overrides:
getArc
in classFlatBorder
-
isMacStyleSpinner
-