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.
- UiDefault:
- RadioButton.font Font, RadioButton.background Color, RadioButton.foreground Color, RadioButton.border Border, RadioButton.margin Insets, RadioButton.rollover boolean, RadioButton.icon Icon , RadioButton.iconTextGap int, RadioButton.disabledText Color
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields 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) getStyleableValue(JComponent c, String key) voidprotected voidvoidvoidpaint(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
-
-
Constructor Details
-
FlatRadioButtonUI
protected FlatRadioButtonUI(boolean shared) - Since:
- 2
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicButtonUI
-
uninstallUI
- Overrides:
uninstallUIin classBasicButtonUI
-
installDefaults
- Overrides:
installDefaultsin classBasicRadioButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classBasicRadioButtonUI
-
createButtonListener
- Overrides:
createButtonListenerin classBasicButtonUI
-
propertyChange
- Since:
- 2
-
installStyle
- 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
-
getBaseline
- Overrides:
getBaselinein classBasicButtonUI
-