Package com.formdev.flatlaf.ui
Class FlatCheckBoxMenuItemUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.MenuItemUI
-
- javax.swing.plaf.basic.BasicMenuItemUI
-
- javax.swing.plaf.basic.BasicCheckBoxMenuItemUI
-
- com.formdev.flatlaf.ui.FlatCheckBoxMenuItemUI
-
public class FlatCheckBoxMenuItemUI extends BasicCheckBoxMenuItemUI
Provides the Flat LaF UI delegate forJCheckBoxMenuItem
.- UiDefault:
- CheckBoxMenuItem.font Font, CheckBoxMenuItem.background Color, CheckBoxMenuItem.foreground Color, CheckBoxMenuItem.disabledForeground Color, CheckBoxMenuItem.selectionBackground Color, CheckBoxMenuItem.selectionForeground Color, CheckBoxMenuItem.acceleratorForeground Color, CheckBoxMenuItem.acceleratorSelectionForeground Color, MenuItem.acceleratorFont Font defaults to MenuItem.font, MenuItem.acceleratorDelimiter String, CheckBoxMenuItem.border Border, CheckBoxMenuItem.borderPainted boolean, CheckBoxMenuItem.margin Insets, CheckBoxMenuItem.arrowIcon Icon, CheckBoxMenuItem.checkIcon Icon, CheckBoxMenuItem.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 FlatCheckBoxMenuItemUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlatMenuItemRenderer
createRenderer()
static ComponentUI
createUI(JComponent c)
protected Dimension
getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)
protected void
installDefaults()
void
paint(Graphics g, JComponent c)
protected void
uninstallDefaults()
-
Methods inherited from class javax.swing.plaf.basic.BasicCheckBoxMenuItemUI
getPropertyPrefix, processMouseEvent
-
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredSize, installComponents, installKeyboardActions, installListeners, installUI, 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)
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in classBasicMenuItemUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in classBasicMenuItemUI
-
createRenderer
protected FlatMenuItemRenderer createRenderer()
-
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
-
-