Class RadianceMenuBackgroundDelegate
- java.lang.Object
-
- org.pushingpixels.radiance.theming.internal.utils.menu.RadianceMenuBackgroundDelegate
-
public class RadianceMenuBackgroundDelegate extends java.lang.ObjectDelegate for painting background of menu items.
-
-
Constructor Summary
Constructors Constructor Description RadianceMenuBackgroundDelegate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidpaintBackground(java.awt.Graphics g, javax.swing.JComponent menuItem, int textOffset)Updates the specified menu item with the background that matches the provided parameters.static voidpaintHighlights(java.awt.Graphics g, javax.swing.JMenuItem menuItem)Paints menu highlights.
-
-
-
Method Detail
-
paintBackground
public static void paintBackground(java.awt.Graphics g, javax.swing.JComponent 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.
-
paintHighlights
public static void paintHighlights(java.awt.Graphics g, javax.swing.JMenuItem menuItem)Paints menu highlights.- Parameters:
g- Graphics context.menuItem- Menu item.
-
-