Package com.formdev.flatlaf.ui
Class FlatRadioButtonMenuItemUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.MenuItemUI
-
- javax.swing.plaf.basic.BasicMenuItemUI
-
- javax.swing.plaf.basic.BasicRadioButtonMenuItemUI
-
- com.formdev.flatlaf.ui.FlatRadioButtonMenuItemUI
-
- All Implemented Interfaces:
FlatStylingSupport.StyleableLookupProvider
,FlatStylingSupport.StyleableUI
public class FlatRadioButtonMenuItemUI extends BasicRadioButtonMenuItemUI implements FlatStylingSupport.StyleableUI, FlatStylingSupport.StyleableLookupProvider
Provides the Flat LaF UI delegate forJRadioButtonMenuItem
.- UiDefault:
- RadioButtonMenuItem.font Font, RadioButtonMenuItem.background Color, RadioButtonMenuItem.foreground Color, RadioButtonMenuItem.disabledForeground Color, RadioButtonMenuItem.selectionBackground Color, RadioButtonMenuItem.selectionForeground Color, RadioButtonMenuItem.acceleratorForeground Color, RadioButtonMenuItem.acceleratorSelectionForeground Color, MenuItem.acceleratorFont Font defaults to MenuItem.font, MenuItem.acceleratorDelimiter String, RadioButtonMenuItem.border Border, RadioButtonMenuItem.borderPainted boolean, RadioButtonMenuItem.margin Insets, RadioButtonMenuItem.arrowIcon Icon, RadioButtonMenuItem.checkIcon Icon, RadioButtonMenuItem.opaque boolean , MenuItem.iconTextGap int
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuItemUI
BasicMenuItemUI.MouseInputHandler
-
-
Field Summary
-
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
-
-
Constructor Summary
Constructors Constructor Description FlatRadioButtonMenuItemUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyStyle(Object style)
protected Object
applyStyleProperty(String key, Object value)
protected PropertyChangeListener
createPropertyChangeListener(JComponent c)
protected FlatMenuItemRenderer
createRenderer()
static ComponentUI
createUI(JComponent c)
MethodHandles.Lookup
getLookupForStyling()
protected Dimension
getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)
Map<String,Class<?>>
getStyleableInfos(JComponent c)
Object
getStyleableValue(JComponent c, String key)
protected void
installDefaults()
protected void
installStyle()
void
installUI(JComponent c)
void
paint(Graphics g, JComponent c)
protected void
uninstallDefaults()
-
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonMenuItemUI
getPropertyPrefix, processMouseEvent
-
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredSize, installComponents, installKeyboardActions, installListeners, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUI, update
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in classBasicMenuItemUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in classBasicMenuItemUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in classBasicMenuItemUI
-
createRenderer
protected FlatMenuItemRenderer createRenderer()
-
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
- Overrides:
createPropertyChangeListener
in classBasicMenuItemUI
-
installStyle
protected void installStyle()
- Since:
- 2
-
applyStyle
protected void applyStyle(Object style)
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos(JComponent c)
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
getLookupForStyling
public MethodHandles.Lookup getLookupForStyling()
- Specified by:
getLookupForStyling
in interfaceFlatStylingSupport.StyleableLookupProvider
- Since:
- 2.5
-
getPreferredMenuItemSize
protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)
- Overrides:
getPreferredMenuItemSize
in classBasicMenuItemUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paint
in classBasicMenuItemUI
-
-