public class ExtBasicMenuUI extends BasicMenuUI
MenuUI
used by the JGoodies Windows
and Plastic looks. Unlike it's superclass, it aligns submenu items.BasicMenuUI.ChangeHandler, BasicMenuUI.MouseInputHandler
changeListener, menuListener
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
Constructor and Description |
---|
ExtBasicMenuUI() |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent b) |
protected Dimension |
getPreferredMenuItemSize(JComponent c,
Icon aCheckIcon,
Icon anArrowIcon,
int textIconGap) |
protected String |
getPropertyPrefix() |
protected void |
installDefaults() |
protected void |
installListeners() |
protected void |
paintMenuItem(Graphics g,
JComponent c,
Icon aCheckIcon,
Icon anArrowIcon,
Color background,
Color foreground,
int textIconGap) |
protected void |
uninstallDefaults() |
protected void |
uninstallListeners() |
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createMouseInputListener, createPropertyChangeListener, getMaximumSize, installKeyboardActions, setupPostTimer, uninstallKeyboardActions
doClick, getMinimumSize, getPath, getPreferredSize, installComponents, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallUI, update
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
public static ComponentUI createUI(JComponent b)
protected void installDefaults()
installDefaults
in class BasicMenuUI
protected void uninstallDefaults()
uninstallDefaults
in class BasicMenuUI
protected String getPropertyPrefix()
getPropertyPrefix
in class BasicMenuUI
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
protected void installListeners()
installListeners
in class BasicMenuUI
protected void uninstallListeners()
uninstallListeners
in class BasicMenuUI
Copyright © 2015 JGoodies Software GmbH. All rights reserved.