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 intarcprotected java.lang.BooleanroundRect-
Fields inherited from class com.formdev.flatlaf.ui.FlatBorder
borderColor, borderWidth, customBorderColor, disabledBorderColor, errorBorderColor, errorFocusedBorderColor, focusColor, focusedBorderColor, focusWidth, innerFocusWidth, innerOutlineWidth, outline, outlineColor, outlineFocusedColor, successBorderColor, successFocusedBorderColor, warningBorderColor, warningFocusedBorderColor
-
-
Constructor Summary
Constructors Constructor Description FlatRoundBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetArc(java.awt.Component c)Returns the (unscaled) arc diameter of the border corners.private booleanisMacStyleSpinner(java.awt.Component c)voidpaintBorder(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:
paintBorderin interfacejavax.swing.border.Border- Overrides:
paintBorderin classFlatBorder
-
getArc
protected int getArc(java.awt.Component c)
Description copied from class:FlatBorderReturns the (unscaled) arc diameter of the border corners.- Overrides:
getArcin classFlatBorder
-
isMacStyleSpinner
private boolean isMacStyleSpinner(java.awt.Component c)
-
-