javax.swing.Icon
, javax.swing.plaf.UIResource
public class CheckBoxMenuItemIcon
extends java.lang.Object
implements javax.swing.Icon, javax.swing.plaf.UIResource
JCheckBoxMenuItem
s.Constructor | Description |
---|---|
CheckBoxMenuItemIcon(javax.swing.JMenuItem menuItem,
int size) |
Creates a new icon.
|
Modifier and Type | Method | 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.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon