Package com.formdev.flatlaf.icons
Class FlatCheckBoxIcon
java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
com.formdev.flatlaf.icons.FlatCheckBoxIcon
- All Implemented Interfaces:
Icon
,UIResource
- Direct Known Subclasses:
FlatRadioButtonIcon
,FlatThemePreviewSwitches.ZoomCheckBoxIcon
Icon for
JCheckBox
.
Note: If Component.focusWidth is greater than zero, then the outer focus border is painted outside of the icon bounds. Make sure that the checkbox has margins, which are equal or greater than focusWidth.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected Color
protected Color
protected float
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected float
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected float
protected Color
protected Color
protected Color
protected Color
protected Color
(package private) static final int
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected float
protected final String
Fields inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
color, height, width
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyStyleProperty
(String key, Object value) protected Color
getBackground
(Component c, boolean selected) protected Color
getBorderColor
(Component c, boolean selected) protected Color
protected Color
float
protected String
getStyleableValue
(String key) protected static Color
getUIColor
(String key, String style) protected static float
getUIFloat
(String key, float defaultValue, String style) protected boolean
protected boolean
protected void
paintBackground
(Component c, Graphics2D g, float borderWidth) protected void
paintBorder
(Component c, Graphics2D g, float borderWidth) protected void
protected void
protected void
paintIcon
(Component c, Graphics2D g) protected void
private static String
Methods inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
getIconHeight, getIconWidth, paintIcon
-
Field Details
-
style
-
focusWidth
protected float focusWidth -
focusColor
-
borderWidth
protected float borderWidth- Since:
- 2
-
selectedBorderWidth
protected float selectedBorderWidth- Since:
- 2
-
disabledSelectedBorderWidth
protected float disabledSelectedBorderWidth- Since:
- 2
-
arc
protected int arc -
borderColor
-
background
-
selectedBorderColor
-
selectedBackground
-
checkmarkColor
-
disabledBorderColor
-
disabledBackground
-
disabledSelectedBorderColor
- Since:
- 2
-
disabledSelectedBackground
- Since:
- 2
-
disabledCheckmarkColor
-
focusedBorderColor
-
focusedBackground
-
focusedSelectedBorderColor
- Since:
- 2
-
focusedSelectedBackground
- Since:
- 2
-
focusedCheckmarkColor
- Since:
- 2
-
hoverBorderColor
-
hoverBackground
-
hoverSelectedBorderColor
- Since:
- 2
-
hoverSelectedBackground
- Since:
- 2
-
hoverCheckmarkColor
- Since:
- 2
-
pressedBorderColor
- Since:
- 2
-
pressedBackground
-
pressedSelectedBorderColor
- Since:
- 2
-
pressedSelectedBackground
- Since:
- 2
-
pressedCheckmarkColor
- Since:
- 2
-
ICON_SIZE
static final int ICON_SIZE- See Also:
-
-
Constructor Details
-
FlatCheckBoxIcon
public FlatCheckBoxIcon()
-
-
Method Details
-
getPropertyPrefix
-
getUIColor
-
getUIFloat
- Since:
- 2
-
styleKey
-
applyStyleProperty
- Since:
- 2
-
getStyleableInfos
- Since:
- 2
-
getStyleableValue
- Since:
- 2.5
-
paintIcon
- Specified by:
paintIcon
in classFlatAbstractIcon
-
paintFocusBorder
-
paintBorder
-
paintBackground
-
paintCheckmark
-
paintIndeterminate
-
isIndeterminate
-
isSelected
-
getFocusWidth
public float getFocusWidth()- Since:
- 2
-
getFocusColor
-
getBorderColor
-
getBackground
-
getCheckmarkColor
-