Package com.formdev.flatlaf.ui
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
-
- Direct Known Subclasses:
FlatCheckBoxUI
public class FlatRadioButtonUI extends BasicRadioButtonUI
Provides the Flat LaF UI delegate forJRadioButton.- 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
-
-
Field Summary
Fields Modifier and Type Field Description protected ColordisabledTextprotected inticonTextGap-
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
icon
-
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
-
Constructor Summary
Constructors Constructor Description FlatRadioButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUIcreateUI(JComponent c)DimensiongetPreferredSize(JComponent c)voidinstallDefaults(AbstractButton b)voidpaint(Graphics g, JComponent c)protected voidpaintText(Graphics g, AbstractButton b, Rectangle textRect, String text)protected voiduninstallDefaults(AbstractButton b)-
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
getDefaultIcon, getPropertyPrefix, installListeners, paintFocus, uninstallListeners
-
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paintIcon
-
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
-
-
-
Field Detail
-
iconTextGap
protected int iconTextGap
-
disabledText
protected Color disabledText
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installDefaults
public void installDefaults(AbstractButton b)
- Overrides:
installDefaultsin classBasicRadioButtonUI
-
uninstallDefaults
protected void uninstallDefaults(AbstractButton b)
- Overrides:
uninstallDefaultsin classBasicRadioButtonUI
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classBasicRadioButtonUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paintin classBasicRadioButtonUI
-
paintText
protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
- Overrides:
paintTextin classBasicButtonUI
-
-