com.alee.laf.menu
Class WebMenuItemStyle

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

public final class WebMenuItemStyle
extends java.lang.Object

WebMenu, WebMenuItem, WebCheckBoxMenuItem and WebRadioButtonMenuItem style class.

Author:
Mikle Garin

Field Summary
static java.awt.Color acceleratorBg
          Accelerator text background.
static java.awt.Color acceleratorDisabledFg
          Disabld accelerator text foreground.
static java.awt.Color acceleratorFg
          Accelerator text foreground.
static boolean alignTextToMenuIcons
          Whether should align all item texts to a single vertical line within single popup menu or not.
static java.awt.Color checkColor
          Checkbox and radiobutton menu items check color.
static java.awt.Color disabledFg
          Disabled menu item foreground.
static int iconAlignment
          Icon alignment.
static int iconTextGap
          Gap between item icon and text.
static int itemSidesGap
          Gap between item icon/text and accelerator text/sub-menu arrow.
static java.awt.Insets margin
          Menu item content margin.
static Painter painter
          Item painter.
static int round
          Separate menu item corners rounding.
static java.awt.Color selectedBottomBg
          Bottom background color for selected item.
static java.awt.Color selectedTopBg
          Top background color for selected item.
static int shadeWidth
          Separate menu item shade width.
static int sideSpacing
          Spacing between menu item content and its left/right borders.
 
Constructor Summary
WebMenuItemStyle()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

margin

public static java.awt.Insets margin
Menu item content margin.


sideSpacing

public static int sideSpacing
Spacing between menu item content and its left/right borders.


round

public static int round
Separate menu item corners rounding. This will be applied to menu items that are placed outside popup menu.


shadeWidth

public static int shadeWidth
Separate menu item shade width. This will be applied to menu items that are placed outside popup menu.


disabledFg

public static java.awt.Color disabledFg
Disabled menu item foreground.


checkColor

public static java.awt.Color checkColor
Checkbox and radiobutton menu items check color.


selectedTopBg

public static java.awt.Color selectedTopBg
Top background color for selected item.


selectedBottomBg

public static java.awt.Color selectedBottomBg
Bottom background color for selected item.


acceleratorFg

public static java.awt.Color acceleratorFg
Accelerator text foreground.


acceleratorDisabledFg

public static java.awt.Color acceleratorDisabledFg
Disabld accelerator text foreground.


acceleratorBg

public static java.awt.Color acceleratorBg
Accelerator text background. Set to null to disable it.


iconTextGap

public static int iconTextGap
Gap between item icon and text.


itemSidesGap

public static int itemSidesGap
Gap between item icon/text and accelerator text/sub-menu arrow.


alignTextToMenuIcons

public static boolean alignTextToMenuIcons
Whether should align all item texts to a single vertical line within single popup menu or not.


iconAlignment

public static int iconAlignment
Icon alignment. This property is used only when item texts are aligned to a single vertical line.


painter

public static Painter painter
Item painter.

Constructor Detail

WebMenuItemStyle

public WebMenuItemStyle()