Class SubstanceMenuBackgroundDelegate
- java.lang.Object
-
- org.pushingpixels.substance.internal.utils.menu.SubstanceMenuBackgroundDelegate
-
public class SubstanceMenuBackgroundDelegate extends Object
Delegate for painting background of menu items.
-
-
Constructor Summary
Constructors Constructor Description SubstanceMenuBackgroundDelegate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidpaintBackground(Graphics g, Component menuItem, int textOffset)Updates the specified menu item with the background that matches the provided parameters.static voidpaintHighlights(Graphics g, JMenuItem menuItem, float borderAlpha)Paints menu highlights.
-
-
-
Method Detail
-
paintBackground
public static void paintBackground(Graphics g, Component menuItem, int textOffset)
Updates the specified menu item with the background that matches the provided parameters.- Parameters:
g- Graphic context.menuItem- Menu item.textOffset- The offset of the menu item text.
-
-