Package com.jgoodies.looks.plastic
Class PlasticMenuUI
The JGoodies Plastic look&feel implementation of
MenuUI.
It differs from the superclass in that it uses an overhauled menu
rendering and alignment system. Furthermore, you can set a client property
Options.NO_ICONS_KEY to indicate that this menu has no icons.- Version:
- $Revision: 1.14 $
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuUI
BasicMenuUI.ChangeHandler, BasicMenuUI.MouseInputHandler -
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicMenuUI
changeListener, menuListenerFields inherited from class javax.swing.plaf.basic.BasicMenuItemUI
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUIprotected voidpaintMenuItem(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.Methods inherited from class com.jgoodies.looks.common.ExtBasicMenuUI
getPreferredMenuItemSize, getPropertyPrefix, installDefaults, installListeners, uninstallDefaults, uninstallListenersMethods inherited from class javax.swing.plaf.basic.BasicMenuUI
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createMouseInputListener, createPropertyChangeListener, getMaximumSize, getMinimumSize, installKeyboardActions, setupPostTimer, uninstallKeyboardActionsMethods inherited from class javax.swing.plaf.basic.BasicMenuItemUI
doClick, getPath, getPreferredSize, installComponents, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallUI, updateMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
Constructor Details
-
PlasticMenuUI
public PlasticMenuUI()
-
-
Method Details
-
createUI
-
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:
paintMenuItemin classExtBasicMenuUI
-