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.14 $
    See Also:
    Options
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuUI

        javax.swing.plaf.basic.BasicMenuUI.ChangeHandler, javax.swing.plaf.basic.BasicMenuUI.MouseInputHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean oldOpaque  
      • Fields inherited from class javax.swing.plaf.basic.BasicMenuUI

        changeListener, menuListener
      • Fields 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 
      Constructor Description
      PlasticMenuUI()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent b)  
      protected void installDefaults()  
      protected void paintMenuItem​(java.awt.Graphics g, javax.swing.JComponent c, javax.swing.Icon aCheckIcon, javax.swing.Icon anArrowIcon, java.awt.Color background, java.awt.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 javax.swing.plaf.basic.BasicMenuUI

        createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createMouseInputListener, createPropertyChangeListener, getMaximumSize, getMinimumSize, installKeyboardActions, setupPostTimer, uninstallKeyboardActions
      • Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI

        doClick, getPath, getPreferredSize, installComponents, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallUI, update
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • oldOpaque

        private boolean oldOpaque
    • Constructor Detail

      • PlasticMenuUI

        public PlasticMenuUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent b)
      • paintMenuItem

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