com.jgoodies.looks.windows
Class WindowsMenuUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ButtonUI
          extended byjavax.swing.plaf.MenuItemUI
              extended byjavax.swing.plaf.basic.BasicMenuItemUI
                  extended byjavax.swing.plaf.basic.BasicMenuUI
                      extended bycom.sun.java.swing.plaf.windows.WindowsMenuUI
                          extended bycom.jgoodies.looks.windows.WindowsMenuUI

public final class WindowsMenuUI
extends com.sun.java.swing.plaf.windows.WindowsMenuUI

The JGoodies Windows 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.2 $
Author:
Karsten Lentzsch
See Also:
Options

Nested Class Summary
 
Nested classes inherited from class com.sun.java.swing.plaf.windows.WindowsMenuUI
com.sun.java.swing.plaf.windows.WindowsMenuUI.WindowsMouseInputHandler
 
Nested classes inherited from class javax.swing.plaf.basic.BasicMenuUI
BasicMenuUI.ChangeHandler, BasicMenuUI.MouseInputHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicMenuUI
changeListener, menuListener, propertyChangeListener
 
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground
 
Constructor Summary
WindowsMenuUI()
           
 
Method Summary
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()
           
 
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 javax.swing.plaf.basic.BasicMenuItemUI
doClick, getMinimumSize, getPath, getPreferredSize, installComponents, installUI, paint, uninstallComponents, uninstallUI, update
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsMenuUI

public WindowsMenuUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent b)

installDefaults

protected void installDefaults()

uninstallDefaults

protected void uninstallDefaults()

getPropertyPrefix

protected String getPropertyPrefix()

getPreferredMenuItemSize

protected Dimension getPreferredMenuItemSize(JComponent c,
                                             Icon aCheckIcon,
                                             Icon anArrowIcon,
                                             int textIconGap)

paintMenuItem

protected void paintMenuItem(Graphics g,
                             JComponent c,
                             Icon aCheckIcon,
                             Icon anArrowIcon,
                             Color background,
                             Color foreground,
                             int textIconGap)


Copyright © 2001-2005 JGoodies Karsten Lentzsch. All Rights Reserved.