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 intprotected Colorprotected Colorprotected floatprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected floatprotected Colorprotected Colorprotected Colorprotected floatprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected floatprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Color(package private) static final intprotected Colorprotected Colorprotected floatprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected floatprotected final StringFields inherited from class FlatAbstractIcon
color, height, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyStyleProperty(String key, Object value) protected ColorgetBackground(Component c, boolean selected, boolean indeterminate) protected ColorgetBorderColor(Component c, boolean selected, boolean indeterminate) protected ColorgetCheckmarkColor(Component c, boolean indeterminate) protected Colorfloatprotected StringgetStyleableValue(String key) protected static ColorgetUIColor(String key, String style) protected static floatgetUIFloat(String key, float defaultValue, String style) protected booleanprotected booleanprotected voidpaintBackground(Component c, Graphics2D g, float borderWidth) protected voidpaintBorder(Component c, Graphics2D g, float borderWidth) protected voidprotected voidprotected voidpaintIcon(Component c, Graphics2D g) protected voidprivate static StringMethods inherited from class FlatAbstractIcon
getIconHeight, getIconWidth, paintBackground, 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
-
indeterminateBorderWidth
protected float indeterminateBorderWidth- Since:
- 3.6
-
disabledIndeterminateBorderWidth
protected float disabledIndeterminateBorderWidth- Since:
- 3.6
-
arc
protected int arc -
borderColor
-
background
-
selectedBorderColor
-
selectedBackground
-
checkmarkColor
-
indeterminateBorderColor
- Since:
- 3.6
-
indeterminateBackground
- Since:
- 3.6
-
indeterminateCheckmarkColor
- Since:
- 3.6
-
disabledBorderColor
-
disabledBackground
-
disabledSelectedBorderColor
- Since:
- 2
-
disabledSelectedBackground
- Since:
- 2
-
disabledCheckmarkColor
-
disabledIndeterminateBorderColor
- Since:
- 3.6
-
disabledIndeterminateBackground
- Since:
- 3.6
-
disabledIndeterminateCheckmarkColor
- Since:
- 3.6
-
focusedBorderColor
-
focusedBackground
-
focusedSelectedBorderColor
- Since:
- 2
-
focusedSelectedBackground
- Since:
- 2
-
focusedCheckmarkColor
- Since:
- 2
-
focusedIndeterminateBorderColor
- Since:
- 3.6
-
focusedIndeterminateBackground
- Since:
- 3.6
-
focusedIndeterminateCheckmarkColor
- Since:
- 3.6
-
hoverBorderColor
-
hoverBackground
-
hoverSelectedBorderColor
- Since:
- 2
-
hoverSelectedBackground
- Since:
- 2
-
hoverCheckmarkColor
- Since:
- 2
-
hoverIndeterminateBorderColor
- Since:
- 3.6
-
hoverIndeterminateBackground
- Since:
- 3.6
-
hoverIndeterminateCheckmarkColor
- Since:
- 3.6
-
pressedBorderColor
- Since:
- 2
-
pressedBackground
-
pressedSelectedBorderColor
- Since:
- 2
-
pressedSelectedBackground
- Since:
- 2
-
pressedCheckmarkColor
- Since:
- 2
-
pressedIndeterminateBorderColor
- Since:
- 3.6
-
pressedIndeterminateBackground
- Since:
- 3.6
-
pressedIndeterminateCheckmarkColor
- Since:
- 3.6
-
ICON_SIZE
static final int ICON_SIZE- See Also:
-
-
Constructor Details
-
FlatCheckBoxIcon
public FlatCheckBoxIcon()
-
-
Method Details
-
getPropertyPrefix
-
getUIColor
-
getUIFloat
-
styleKey
-
applyStyleProperty
-
getStyleableInfos
-
getStyleableValue
-
paintIcon
- Specified by:
paintIconin classFlatAbstractIcon
-
paintFocusBorder
-
paintBorder
-
paintBackground
-
paintCheckmark
-
paintIndeterminate
-
isIndeterminate
-
isSelected
-
getFocusWidth
public float getFocusWidth()- Since:
- 2
-
getFocusColor
-
getBorderColor
-
getBackground
-
getCheckmarkColor
-