Package com.formdev.flatlaf.ui
Class FlatMenuItemUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.MenuItemUI
-
- javax.swing.plaf.basic.BasicMenuItemUI
-
- com.formdev.flatlaf.ui.FlatMenuItemUI
-
public class FlatMenuItemUI extends javax.swing.plaf.basic.BasicMenuItemUIProvides the Flat LaF UI delegate forJMenuItem.- UiDefault:
- MenuItem.font Font, MenuItem.background Color, MenuItem.foreground Color, MenuItem.disabledForeground Color, MenuItem.selectionBackground Color, MenuItem.selectionForeground Color, MenuItem.acceleratorForeground Color, MenuItem.acceleratorSelectionForeground Color, MenuItem.acceleratorFont Font defaults to MenuItem.font, MenuItem.acceleratorDelimiter String, MenuItem.border Border, MenuItem.borderPainted boolean, MenuItem.margin Insets, MenuItem.arrowIcon Icon, MenuItem.checkIcon Icon, MenuItem.opaque boolean , MenuItem.iconTextGap int
-
-
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 FlatMenuItemUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlatMenuItemRenderercreateRenderer()static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)protected java.awt.DimensiongetPreferredMenuItemSize(javax.swing.JComponent c, javax.swing.Icon checkIcon, javax.swing.Icon arrowIcon, int defaultTextIconGap)protected voidinstallDefaults()voidpaint(java.awt.Graphics g, javax.swing.JComponent c)protected voiduninstallDefaults()-
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredSize, getPropertyPrefix, installComponents, installKeyboardActions, installListeners, installUI, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUI, update
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicMenuItemUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classjavax.swing.plaf.basic.BasicMenuItemUI
-
createRenderer
protected FlatMenuItemRenderer createRenderer()
-
getPreferredMenuItemSize
protected java.awt.Dimension getPreferredMenuItemSize(javax.swing.JComponent c, javax.swing.Icon checkIcon, javax.swing.Icon arrowIcon, int defaultTextIconGap)- Overrides:
getPreferredMenuItemSizein classjavax.swing.plaf.basic.BasicMenuItemUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin classjavax.swing.plaf.basic.BasicMenuItemUI
-
-