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 outline 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.centerDiameter int
-
-
Field Summary
Fields Modifier and Type Field Description protected intcenterDiameter-
Fields inherited from class com.formdev.flatlaf.icons.FlatCheckBoxIcon
arc, background, borderColor, checkmarkColor, disabledBackground, disabledBorderColor, disabledCheckmarkColor, focusColor, focusedBackground, focusedBorderColor, focusWidth, hoverBackground, hoverBorderColor, pressedBackground, selectedBackground, selectedBorderColor, selectedFocusedBackground, selectedFocusedBorderColor, selectedFocusedCheckmarkColor, selectedHoverBackground, selectedPressedBackground, 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 voidpaintBackground(Component c, Graphics2D g)protected voidpaintBorder(Component c, Graphics2D g)protected voidpaintCheckmark(Component c, Graphics2D g)protected voidpaintFocusBorder(Component c, Graphics2D g)-
Methods inherited from class com.formdev.flatlaf.icons.FlatCheckBoxIcon
getBackground, getBorderColor, getCheckmarkColor, getFocusColor, getUIColor, getUIInt, isIndeterminate, isSelected, paintIcon, paintIndeterminate
-
Methods inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
getIconHeight, getIconWidth, paintIcon
-
-
-
-
Method Detail
-
paintFocusBorder
protected void paintFocusBorder(Component c, Graphics2D g)
- Overrides:
paintFocusBorderin classFlatCheckBoxIcon
-
paintBorder
protected void paintBorder(Component c, Graphics2D g)
- Overrides:
paintBorderin classFlatCheckBoxIcon
-
paintBackground
protected void paintBackground(Component c, Graphics2D g)
- Overrides:
paintBackgroundin classFlatCheckBoxIcon
-
paintCheckmark
protected void paintCheckmark(Component c, Graphics2D g)
- Overrides:
paintCheckmarkin classFlatCheckBoxIcon
-
-