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
- Direct Known Subclasses:
FlatThemePreviewSwitches.ZoomRadioButtonIcon
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected float
centerDiameter
-
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, 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 Constructor Description FlatRadioButtonIcon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getPropertyPrefix()
protected void
paintBackground(java.awt.Component c, java.awt.Graphics2D g, float borderWidth)
protected void
paintBorder(java.awt.Component c, java.awt.Graphics2D g, float borderWidth)
protected void
paintCheckmark(java.awt.Component c, java.awt.Graphics2D g)
protected void
paintFocusBorder(java.awt.Component c, java.awt.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 java.lang.String getPropertyPrefix()
- Overrides:
getPropertyPrefix
in classFlatCheckBoxIcon
-
paintFocusBorder
protected void paintFocusBorder(java.awt.Component c, java.awt.Graphics2D g)
- Overrides:
paintFocusBorder
in classFlatCheckBoxIcon
-
paintBorder
protected void paintBorder(java.awt.Component c, java.awt.Graphics2D g, float borderWidth)
- Overrides:
paintBorder
in classFlatCheckBoxIcon
-
paintBackground
protected void paintBackground(java.awt.Component c, java.awt.Graphics2D g, float borderWidth)
- Overrides:
paintBackground
in classFlatCheckBoxIcon
-
paintCheckmark
protected void paintCheckmark(java.awt.Component c, java.awt.Graphics2D g)
- Overrides:
paintCheckmark
in classFlatCheckBoxIcon
-
-