| java.lang.Object org.jvnet.substance.SubstanceMenuBackgroundDelegate
SubstanceMenuBackgroundDelegate | public class SubstanceMenuBackgroundDelegate (Code) | | Delegate for painting background of menu items.
author: Kirill Grouchnikov |
SubstanceMenuBackgroundDelegate | public SubstanceMenuBackgroundDelegate(float fillAlpha)(Code) | | Creates a new background delegate for menu items.
Parameters: fillAlpha - Alphs attribute for the fill. |
paintBackground | public void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor, float borderAlpha, int textOffset)(Code) | | Updates the specified menu item with the background that matches the
provided parameters.
Parameters: g - Graphic context. Parameters: menuItem - Menu item. Parameters: bgColor - Current background color. Parameters: borderAlpha - Border alpha. Parameters: textOffset - The offset of the menu item text. |
|
|