com.jgoodies.looks.windows
Class WindowsXPMenuUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
javax.swing.plaf.basic.BasicMenuUI
com.sun.java.swing.plaf.windows.WindowsMenuUI
com.jgoodies.looks.windows.WindowsXPMenuUI
public final class WindowsXPMenuUI
- extends com.sun.java.swing.plaf.windows.WindowsMenuUI
The JGoodies Windows XP look&feel implementation of 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.
- Version:
- $Revision: 1.3 $
- Author:
- Karsten Lentzsch
- See Also:
Options
Nested classes/interfaces inherited from class com.sun.java.swing.plaf.windows.WindowsMenuUI |
com.sun.java.swing.plaf.windows.WindowsMenuUI.WindowsMouseInputHandler |
Fields inherited from class com.sun.java.swing.plaf.windows.WindowsMenuUI |
hotTrackingOn, menuBarHeight |
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground |
Methods inherited from class com.sun.java.swing.plaf.windows.WindowsMenuUI |
createMouseInputListener, paintBackground, paintText |
Methods inherited from class javax.swing.plaf.basic.BasicMenuUI |
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, getMaximumSize, installKeyboardActions, installListeners, setupPostTimer, uninstallKeyboardActions, uninstallListeners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowsXPMenuUI
public WindowsXPMenuUI()
createUI
public static ComponentUI createUI(JComponent b)
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in class com.sun.java.swing.plaf.windows.WindowsMenuUI
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in class BasicMenuUI
getPropertyPrefix
protected String getPropertyPrefix()
- Overrides:
getPropertyPrefix
in class BasicMenuUI
getPreferredMenuItemSize
protected Dimension getPreferredMenuItemSize(JComponent c,
Icon aCheckIcon,
Icon anArrowIcon,
int textIconGap)
- Overrides:
getPreferredMenuItemSize
in class com.sun.java.swing.plaf.windows.WindowsMenuUI
paintMenuItem
protected void paintMenuItem(Graphics g,
JComponent c,
Icon aCheckIcon,
Icon anArrowIcon,
Color background,
Color foreground,
int textIconGap)
- Overrides:
paintMenuItem
in class BasicMenuItemUI
Copyright © 2001-2007 JGoodies Karsten Lentzsch. All Rights Reserved.