javax.swing.Icon
, javax.swing.plaf.UIResource
public class RadioButtonMenuItemIcon
extends java.lang.Object
implements javax.swing.Icon, javax.swing.plaf.UIResource
JRadioButtonMenuItem
s.Constructor | Description |
---|---|
RadioButtonMenuItemIcon(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 RadioButtonMenuItemIcon(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