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
,java.io.Serializable
,javax.swing.border.Border
,javax.swing.plaf.UIResource
- Direct Known Subclasses:
FlatDatePickerBorder
public class FlatRoundBorder extends FlatBorder
Border for various components (e.g.JComboBox
).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
arc
protected java.lang.Boolean
roundRect
-
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 Constructor Description FlatRoundBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getArc(java.awt.Component c)
Returns the (unscaled) arc diameter of the border corners.private boolean
isMacStyleSpinner(java.awt.Component c)
void
paintBorder(java.awt.Component c, java.awt.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
-
-
-
-
Method Detail
-
paintBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorder
in interfacejavax.swing.border.Border
- Overrides:
paintBorder
in classFlatBorder
-
getArc
protected int getArc(java.awt.Component c)
Description copied from class:FlatBorder
Returns the (unscaled) arc diameter of the border corners.- Overrides:
getArc
in classFlatBorder
-
isMacStyleSpinner
private boolean isMacStyleSpinner(java.awt.Component c)
-
-