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
public class FlatRadioButtonIcon extends FlatCheckBoxIcon
Icon forJRadioButton.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.
- UiDefault:
- RadioButton.icon.style String optional; "outlined"/null (default) or "filled", RadioButton.icon.centerDiameter int or float
-
-
Field Summary
Fields Modifier and Type Field Description protected floatcenterDiameter-
Fields 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, pressedBackground, pressedBorderColor, pressedCheckmarkColor, pressedSelectedBackground, pressedSelectedBorderColor, selectedBackground, selectedBorderColor, selectedBorderWidth, style
-
Fields inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
color, height, width
-
-
Constructor Summary
Constructors Constructor Description FlatRadioButtonIcon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetPropertyPrefix()protected voidpaintBackground(Component c, Graphics2D g, float borderWidth)protected voidpaintBorder(Component c, Graphics2D g, float borderWidth)protected voidpaintCheckmark(Component c, Graphics2D g)protected voidpaintFocusBorder(Component c, Graphics2D g)-
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
-
-
-
-
Method Detail
-
getPropertyPrefix
protected String getPropertyPrefix()
- Overrides:
getPropertyPrefixin classFlatCheckBoxIcon
-
paintFocusBorder
protected void paintFocusBorder(Component c, Graphics2D g)
- Overrides:
paintFocusBorderin classFlatCheckBoxIcon
-
paintBorder
protected void paintBorder(Component c, Graphics2D g, float borderWidth)
- Overrides:
paintBorderin classFlatCheckBoxIcon
-
paintBackground
protected void paintBackground(Component c, Graphics2D g, float borderWidth)
- Overrides:
paintBackgroundin classFlatCheckBoxIcon
-
paintCheckmark
protected void paintCheckmark(Component c, Graphics2D g)
- Overrides:
paintCheckmarkin classFlatCheckBoxIcon
-
-