com.jgoodies.looks.common

Class MenuItemRenderer

public class MenuItemRenderer extends Object

Renders and lays out menu items.

Version: $Revision: 1.11 $

Author: Karsten Lentzsch

Field Summary
protected static StringHTML_KEY
Constructor Summary
MenuItemRenderer(JMenuItem menuItem, boolean iconBorderEnabled, Font acceleratorFont, Color selectionForeground, Color disabledForeground, Color acceleratorForeground, Color acceleratorSelectionForeground)
Constructs a MenuItemRenderer for the specified menu item and settings.
Method Summary
protected booleandisabledTextHasShadow()
DimensiongetPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)
protected booleanisMnemonicHidden()
voidpaintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)

Field Detail

HTML_KEY

protected static final String HTML_KEY

Constructor Detail

MenuItemRenderer

public MenuItemRenderer(JMenuItem menuItem, boolean iconBorderEnabled, Font acceleratorFont, Color selectionForeground, Color disabledForeground, Color acceleratorForeground, Color acceleratorSelectionForeground)
Constructs a MenuItemRenderer for the specified menu item and settings.

Method Detail

disabledTextHasShadow

protected boolean disabledTextHasShadow()

getPreferredMenuItemSize

public Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)

isMnemonicHidden

protected boolean isMnemonicHidden()

paintMenuItem

public void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)
Copyright © 2001-2008 JGoodies Karsten Lentzsch. All Rights Reserved.