public class CheckBoxMenuItemIcon
extends java.lang.Object
implements javax.swing.Icon, javax.swing.plaf.UIResource
JCheckBoxMenuItems.| Constructor and Description |
|---|
CheckBoxMenuItemIcon(javax.swing.JMenuItem menuItem,
int size)
Creates a new icon.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
public CheckBoxMenuItemIcon(javax.swing.JMenuItem menuItem,
int size)
menuItem - The corresponding menu item.size - The size of this icon.public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic int getIconHeight()
getIconHeight in interface javax.swing.Icon