public class SubstanceMenuBackgroundDelegate
extends java.lang.Object
Constructor | Description |
---|---|
SubstanceMenuBackgroundDelegate() |
Modifier and Type | Method | Description |
---|---|---|
static void |
paintBackground(java.awt.Graphics g,
java.awt.Component menuItem,
int textOffset) |
Updates the specified menu item with the background that matches the
provided parameters.
|
static void |
paintHighlights(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
float borderAlpha) |
Paints menu highlights.
|
public static void paintBackground(java.awt.Graphics g, java.awt.Component menuItem, int textOffset)
g
- Graphic context.menuItem
- Menu item.textOffset
- The offset of the menu item text.public static void paintHighlights(java.awt.Graphics g, javax.swing.JMenuItem menuItem, float borderAlpha)
g
- Graphics context.menuItem
- Menu item.borderAlpha
- Alpha channel for painting the border.