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
public class FlatRoundBorder extends FlatBorder
Border for various components (e.g.JComboBox).- See Also:
- Serialized Form
- UiDefault:
- Component.arc int
-
-
Field Summary
Fields Modifier and Type Field Description protected intarcprotected BooleanroundRect-
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 intgetArc(Component c)Returns the (unscaled) arc diameter of the border.voidpaintBorder(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 Detail
-
arc
protected int arc
-
roundRect
protected Boolean roundRect
- Since:
- 2
-
-
Method Detail
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classFlatBorder
-
getArc
protected int getArc(Component c)
Description copied from class:FlatBorderReturns the (unscaled) arc diameter of the border.- Overrides:
getArcin classFlatBorder
-
-