Package com.formdev.flatlaf.icons
Class FlatRadioButtonIcon
java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
com.formdev.flatlaf.icons.FlatCheckBoxIcon
com.formdev.flatlaf.icons.FlatRadioButtonIcon
- All Implemented Interfaces:
Icon
,UIResource
- Direct Known Subclasses:
FlatThemePreviewSwitches.ZoomRadioButtonIcon
Icon for
JRadioButton
.
Note: If Component.focusWidth is greater than zero, then the outer focus border is painted outside of the icon bounds. Make sure that the radiobutton has margins, which are equal or greater than focusWidth.
-
Field Summary
FieldsFields inherited from class com.formdev.flatlaf.icons.FlatCheckBoxIcon
arc, background, borderColor, borderWidth, checkmarkColor, disabledBackground, disabledBorderColor, disabledCheckmarkColor, disabledSelectedBackground, disabledSelectedBorderColor, disabledSelectedBorderWidth, focusColor, focusedBackground, focusedBorderColor, focusedCheckmarkColor, focusedSelectedBackground, focusedSelectedBorderColor, focusWidth, hoverBackground, hoverBorderColor, hoverCheckmarkColor, hoverSelectedBackground, hoverSelectedBorderColor, ICON_SIZE, pressedBackground, pressedBorderColor, pressedCheckmarkColor, pressedSelectedBackground, pressedSelectedBorderColor, selectedBackground, selectedBorderColor, selectedBorderWidth, style
Fields inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
color, height, width
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected void
paintBackground
(Component c, Graphics2D g, float borderWidth) protected void
paintBorder
(Component c, Graphics2D g, float borderWidth) protected void
protected void
Methods inherited from class com.formdev.flatlaf.icons.FlatCheckBoxIcon
applyStyleProperty, getBackground, getBorderColor, getCheckmarkColor, getFocusColor, getFocusWidth, getStyleableInfos, getStyleableValue, getUIColor, getUIFloat, isIndeterminate, isSelected, paintIcon, paintIndeterminate
Methods inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
getIconHeight, getIconWidth, paintIcon
-
Field Details
-
centerDiameter
protected float centerDiameter
-
-
Constructor Details
-
FlatRadioButtonIcon
public FlatRadioButtonIcon()
-
-
Method Details
-
getPropertyPrefix
- Overrides:
getPropertyPrefix
in classFlatCheckBoxIcon
-
paintFocusBorder
- Overrides:
paintFocusBorder
in classFlatCheckBoxIcon
-
paintBorder
- Overrides:
paintBorder
in classFlatCheckBoxIcon
-
paintBackground
- Overrides:
paintBackground
in classFlatCheckBoxIcon
-
paintCheckmark
- Overrides:
paintCheckmark
in classFlatCheckBoxIcon
-