public class ExtBasicMenuItemUI extends BasicMenuItemUI
MenuItemUI
used by the
JGoodies Windows and Plastic looks.
Unlike it's superclass it aligns menu items, uses a slightly
smaller gap between text and icon, which you can override
in the UI defaults.BasicMenuItemUI.MouseInputHandler
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
Constructor and Description |
---|
ExtBasicMenuItemUI() |
Modifier and Type | Method and Description |
---|---|
protected MenuItemRenderer |
createRenderer(JMenuItem menuItem,
boolean iconBorderEnabled,
Font acceleratorFont,
Color selectionForeground,
Color disabledForeground,
Color acceleratorForeground,
Color acceleratorSelectionForeground) |
static ComponentUI |
createUI(JComponent b) |
protected Dimension |
getPreferredMenuItemSize(JComponent c,
Icon aCheckIcon,
Icon anArrowIcon,
int textIconGap) |
protected boolean |
iconBorderEnabled() |
protected void |
installDefaults() |
protected void |
paintMenuItem(Graphics g,
JComponent c,
Icon aCheckIcon,
Icon anArrowIcon,
Color background,
Color foreground,
int textIconGap) |
protected void |
uninstallDefaults() |
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredSize, getPropertyPrefix, installComponents, installKeyboardActions, installListeners, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUI, update
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
public static ComponentUI createUI(JComponent b)
protected void installDefaults()
installDefaults
in class BasicMenuItemUI
protected boolean iconBorderEnabled()
protected void uninstallDefaults()
uninstallDefaults
in class BasicMenuItemUI
protected Dimension getPreferredMenuItemSize(JComponent c, Icon aCheckIcon, Icon anArrowIcon, int textIconGap)
getPreferredMenuItemSize
in class BasicMenuItemUI
protected void paintMenuItem(Graphics g, JComponent c, Icon aCheckIcon, Icon anArrowIcon, Color background, Color foreground, int textIconGap)
paintMenuItem
in class BasicMenuItemUI
Copyright © 2013 JGoodies. All Rights Reserved.