com.jgoodies.looks.plastic

Class PlasticMenuUI


public final class PlasticMenuUI
extends ExtBasicMenuUI

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

Method Summary

static ComponentUI
createUI(JComponent b)
protected void
installDefaults()
protected void
paintMenuItem(Graphics g, JComponent c, Icon aCheckIcon, Icon anArrowIcon, Color background, Color foreground, int textIconGap)
Makes the item transparent, if it is not a sub menu and the model is not selected.
protected void
uninstallDefaults()

Methods inherited from class com.jgoodies.looks.common.ExtBasicMenuUI

createUI, getPreferredMenuItemSize, getPropertyPrefix, installDefaults, installListeners, paintMenuItem, uninstallDefaults, uninstallListeners

Method Details

createUI

public static ComponentUI createUI(JComponent b)
Overrides:
createUI in interface ExtBasicMenuUI

installDefaults

protected void installDefaults()
Overrides:
installDefaults in interface ExtBasicMenuUI

paintMenuItem

protected void paintMenuItem(Graphics g,
                             JComponent c,
                             Icon aCheckIcon,
                             Icon anArrowIcon,
                             Color background,
                             Color foreground,
                             int textIconGap)
Makes the item transparent, if it is not a sub menu and the model is not selected.
Overrides:
paintMenuItem in interface ExtBasicMenuUI

uninstallDefaults

protected void uninstallDefaults()
Overrides:
uninstallDefaults in interface ExtBasicMenuUI

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