Class SubstanceMenuBackgroundDelegate
java.lang.Object
org.pushingpixels.substance.internal.utils.menu.SubstanceMenuBackgroundDelegate
Delegate for painting background of menu items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
paintBackground
(Graphics g, Component menuItem, int textOffset) Updates the specified menu item with the background that matches the provided parameters.static void
paintHighlights
(Graphics g, JMenuItem menuItem, float borderAlpha) Paints menu highlights.
-
Constructor Details
-
SubstanceMenuBackgroundDelegate
public SubstanceMenuBackgroundDelegate()
-
-
Method Details
-
paintBackground
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.
-
paintHighlights
Paints menu highlights.- Parameters:
g
- Graphics context.menuItem
- Menu item.borderAlpha
- Alpha channel for painting the border.
-