net.sf.freecol.client.gui.plaf
Class FreeColPopupMenuUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PopupMenuUI
          extended by javax.swing.plaf.basic.BasicPopupMenuUI
              extended by net.sf.freecol.client.gui.plaf.FreeColPopupMenuUI

public class FreeColPopupMenuUI
extends javax.swing.plaf.basic.BasicPopupMenuUI

Draw the "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
private static FreeColPopupMenuUI sharedInstance
           
 
Fields inherited from class javax.swing.plaf.basic.BasicPopupMenuUI
popupMenu
 
Constructor Summary
FreeColPopupMenuUI()
           
 
Method Summary
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
 

Field Detail

sharedInstance

private static FreeColPopupMenuUI sharedInstance
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