Class FlatRadioButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.basic.BasicToggleButtonUI
javax.swing.plaf.basic.BasicRadioButtonUI
com.formdev.flatlaf.ui.FlatRadioButtonUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
- Direct Known Subclasses:
FlatCheckBoxUI
Provides the Flat LaF UI delegate for
JRadioButton.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classHack for missing mouse-exited event for java.awt.Checkbox on macOS (to fix hover effect).protected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Colorprivate booleanprotected Colorprivate booleanprotected intprivate final booleanprivate static final InsetsFields inherited from class BasicRadioButtonUI
iconFields inherited from class BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyStyle(AbstractButton b, Object style) protected ObjectapplyStyleProperty(AbstractButton b, String key, Object value) protected BasicButtonListenerstatic ComponentUIintgetBaseline(JComponent c, int width, int height) private ColorReturns the default background color of the component.private intgetStyleableValue(JComponent c, String key) (package private) Stringvoidprotected voidvoidprivate voidvoidpaint(Graphics g, JComponent c) protected voidpaintText(Graphics g, AbstractButton b, Rectangle textRect, String text) protected voidprotected voidvoidMethods inherited from class BasicRadioButtonUI
getDefaultIcon, getPropertyPrefix, paintFocusMethods inherited from class BasicToggleButtonUI
getTextShiftOffset, paintIconMethods inherited from class BasicButtonUI
clearTextShiftOffset, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListenersMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Field Details
-
iconTextGap
protected int iconTextGap -
disabledText
-
defaultBackground
-
defaults_initialized
private boolean defaults_initialized -
oldStyleValues
-
tempInsets
-
-
Constructor Details
-
FlatRadioButtonUI
protected FlatRadioButtonUI(boolean shared) - Since:
- 2
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicButtonUI
-
installUIImpl
-
uninstallUI
- Overrides:
uninstallUIin classBasicButtonUI
-
installDefaults
- Overrides:
installDefaultsin classBasicRadioButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classBasicRadioButtonUI
-
createButtonListener
- Overrides:
createButtonListenerin classBasicButtonUI
-
propertyChange
- Since:
- 2
-
installStyle
- Since:
- 2
-
getStyleType
String getStyleType()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicRadioButtonUI
-
paint
- Overrides:
paintin classBasicRadioButtonUI
-
paintText
- Overrides:
paintTextin classBasicButtonUI
-
getDefaultBackground
Returns the default background color of the component. If the component is used as cell renderer (e.g. in JTable), then the background color of the renderer container is returned. -
getIconFocusWidth
-
getBaseline
- Overrides:
getBaselinein classBasicButtonUI
-