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:
javax.swing.Icon
,javax.swing.plaf.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 int
centerDiameter
-
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 void
paintBackground(java.awt.Graphics2D g2)
protected void
paintBorder(java.awt.Graphics2D g2)
protected void
paintCheckmark(java.awt.Graphics2D g2)
protected void
paintFocusBorder(java.awt.Graphics2D g2)
-
Methods inherited from class com.formdev.flatlaf.icons.FlatCheckBoxIcon
getUIColor, getUIInt, paintIcon, paintIndeterminate
-
Methods inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
getIconHeight, getIconWidth, paintIcon
-
-
-
-
Method Detail
-
paintFocusBorder
protected void paintFocusBorder(java.awt.Graphics2D g2)
- Overrides:
paintFocusBorder
in classFlatCheckBoxIcon
-
paintBorder
protected void paintBorder(java.awt.Graphics2D g2)
- Overrides:
paintBorder
in classFlatCheckBoxIcon
-
paintBackground
protected void paintBackground(java.awt.Graphics2D g2)
- Overrides:
paintBackground
in classFlatCheckBoxIcon
-
paintCheckmark
protected void paintCheckmark(java.awt.Graphics2D g2)
- Overrides:
paintCheckmark
in classFlatCheckBoxIcon
-
-