com.alee.laf.menu
Class WebPopupMenuStyle

java.lang.Object
  extended by com.alee.laf.menu.WebPopupMenuStyle

public final class WebPopupMenuStyle
extends java.lang.Object

WebPopupMenu style class.

Author:
Mikle Garin

Field Summary
static java.awt.Color backgroundColor
          Popup menu background color.
static java.awt.Color borderColor
          Popup menu border color.
static int cornerAlignment
          Popup menu dropdown corner alignment.
static int cornerWidth
          Popup menu dropdown style corner width.
static boolean dropdownStyleForMenuBar
          Whether should apply dropdown popup menu style to popup menues within menubar.
static boolean fixLocation
          Whether should fix initial popup menu location or not.
static java.awt.Insets margin
          Popup menu margin.
static int menuSpacing
          Spacing between different popup menus.
static PopupStyle popupStyle
          Popup menu style.
static int round
          Popup menu corners rounding.
static float shadeTransparency
          Popup menu shade transparency.
static int shadeWidth
          Popup menu shade width.
static float transparency
          Popup menu background transparency.
 
Constructor Summary
WebPopupMenuStyle()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

popupStyle

public static PopupStyle popupStyle
Popup menu style.


dropdownStyleForMenuBar

public static boolean dropdownStyleForMenuBar
Whether should apply dropdown popup menu style to popup menues within menubar.


backgroundColor

public static java.awt.Color backgroundColor
Popup menu background color.


borderColor

public static java.awt.Color borderColor
Popup menu border color.


round

public static int round
Popup menu corners rounding. This value might vary depending on available underlying system features.


shadeWidth

public static int shadeWidth
Popup menu shade width. Be aware that this value should always be greater or equal to cornerWidth due to Swing menu processing limitations. This value might vary depending on available underlying system features.


shadeTransparency

public static float shadeTransparency
Popup menu shade transparency.


cornerWidth

public static int cornerWidth
Popup menu dropdown style corner width. This property is used only when corner location is not being fixed.


cornerAlignment

public static int cornerAlignment
Popup menu dropdown corner alignment.


transparency

public static float transparency
Popup menu background transparency.


margin

public static java.awt.Insets margin
Popup menu margin.


menuSpacing

public static int menuSpacing
Spacing between different popup menus.


fixLocation

public static boolean fixLocation
Whether should fix initial popup menu location or not. If set to true popup menu will try to use best possible location to show up.

This is set to true by default to place menubar and menu popups correctly. You might want to set this to false for some specific popup menu, but not all of them at once.

Constructor Detail

WebPopupMenuStyle

public WebPopupMenuStyle()