com.jgoodies.looks.common

Class ExtBasicMenuUI

Known Direct Subclasses:
PlasticMenuUI

public class ExtBasicMenuUI
extends BasicMenuUI

An implementation of MenuUI used by the JGoodies Windows and Plastic looks. Unlike it's superclass, it aligns submenu items.
Version:
$Revision: 1.8 $
Author:
Karsten Lentzsch

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
installListeners()
protected void
paintMenuItem(Graphics g, JComponent c, Icon aCheckIcon, Icon anArrowIcon, Color background, Color foreground, int textIconGap)
protected void
uninstallDefaults()
protected void
uninstallListeners()

Method Details

createUI

public static ComponentUI createUI(JComponent b)

getPreferredMenuItemSize

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

getPropertyPrefix

protected String getPropertyPrefix()

installDefaults

protected void installDefaults()

installListeners

protected void installListeners()

paintMenuItem

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

uninstallDefaults

protected void uninstallDefaults()

uninstallListeners

protected void uninstallListeners()

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