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.
Options
hotTrackingOn, menuBarHeight
acceleratorDelimiter, 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 javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent b) |
protected java.awt.Dimension |
getPreferredMenuItemSize(javax.swing.JComponent c,
javax.swing.Icon aCheckIcon,
javax.swing.Icon anArrowIcon,
int textIconGap) |
protected java.lang.String |
getPropertyPrefix() |
protected void |
installDefaults() |
protected void |
paintMenuItem(java.awt.Graphics g,
javax.swing.JComponent c,
javax.swing.Icon aCheckIcon,
javax.swing.Icon anArrowIcon,
java.awt.Color background,
java.awt.Color foreground,
int textIconGap) |
protected void |
uninstallDefaults() |
createMouseInputListener, paintBackground, paintText
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, getMaximumSize, installKeyboardActions, installListeners, setupPostTimer, uninstallKeyboardActions, uninstallListeners
doClick, getMinimumSize, getPath, getPreferredSize, installComponents, installUI, paint, uninstallComponents, uninstallUI, update
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
protected void installDefaults()
installDefaults
in class com.sun.java.swing.plaf.windows.WindowsMenuUI
protected void uninstallDefaults()
uninstallDefaults
in class javax.swing.plaf.basic.BasicMenuUI
protected java.lang.String getPropertyPrefix()
getPropertyPrefix
in class javax.swing.plaf.basic.BasicMenuUI
protected java.awt.Dimension getPreferredMenuItemSize(javax.swing.JComponent c, javax.swing.Icon aCheckIcon, javax.swing.Icon anArrowIcon, int textIconGap)
getPreferredMenuItemSize
in class com.sun.java.swing.plaf.windows.WindowsMenuUI
protected void paintMenuItem(java.awt.Graphics g, javax.swing.JComponent c, javax.swing.Icon aCheckIcon, javax.swing.Icon anArrowIcon, java.awt.Color background, java.awt.Color foreground, int textIconGap)
paintMenuItem
in class javax.swing.plaf.basic.BasicMenuItemUI
Copyright © 2001-2009 JGoodies Karsten Lentzsch. All Rights Reserved.