public final class WindowsXPMenuUI
extends com.sun.java.swing.plaf.windows.WindowsMenuUI
MenuUI.It differs from the superclass in that it uses an overhauled menu rendering an aligmnent system. Furthermore, you can set a client property Options.NO_ICONS_KEY to indicate that this menu has no icons.
Optionscom.sun.java.swing.plaf.windows.WindowsMenuUI.WindowsMouseInputHandlerBasicMenuUI.ChangeHandler, BasicMenuUI.MouseInputHandlerhotTrackingOn, menuBarHeightchangeListener, menuListeneracceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground| Constructor and Description |
|---|
WindowsXPMenuUI() |
| 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 |
paintMenuItem(Graphics g,
JComponent c,
Icon aCheckIcon,
Icon anArrowIcon,
Color background,
Color foreground,
int textIconGap) |
protected void |
uninstallDefaults() |
createMouseInputListener, paintBackground, paintTextcreateChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, getMaximumSize, installKeyboardActions, installListeners, setupPostTimer, uninstallKeyboardActions, uninstallListenersdoClick, getMinimumSize, getPath, getPreferredSize, installComponents, installUI, paint, uninstallComponents, uninstallUI, updatecontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorpublic static ComponentUI createUI(JComponent b)
protected void installDefaults()
installDefaults in class com.sun.java.swing.plaf.windows.WindowsMenuUIprotected void uninstallDefaults()
uninstallDefaults in class BasicMenuUIprotected String getPropertyPrefix()
getPropertyPrefix in class BasicMenuUIprotected Dimension getPreferredMenuItemSize(JComponent c, Icon aCheckIcon, Icon anArrowIcon, int textIconGap)
getPreferredMenuItemSize in class com.sun.java.swing.plaf.windows.WindowsMenuUIprotected void paintMenuItem(Graphics g, JComponent c, Icon aCheckIcon, Icon anArrowIcon, Color background, Color foreground, int textIconGap)
paintMenuItem in class BasicMenuItemUICopyright © 2001-2014 JGoodies Software GmbH. All Rights Reserved.