Class FreeColPopupMenuUI


  • public class FreeColPopupMenuUI
    extends javax.swing.plaf.basic.BasicPopupMenuUI
    Draw the "image.background.FreeColPopupMenu" resource as a tiled background image on popup menus, such as the drop down from the menu bar at the top of the main window or the tile popup. Obviously these contain text so a light colour is recommended.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static FreeColPopupMenuUI sharedInstance  
      • Fields inherited from class javax.swing.plaf.basic.BasicPopupMenuUI

        popupMenu
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.basic.BasicPopupMenuUI

        installDefaults, installKeyboardActions, installListeners, installUI, isPopupTrigger, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
      • Methods inherited from class javax.swing.plaf.PopupMenuUI

        getPopup
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update
      • Methods inherited from class java.lang.Object

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

      • FreeColPopupMenuUI

        public FreeColPopupMenuUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.ComponentUI