Class CheckBoxMenuItemIcon
- java.lang.Object
-
- org.pushingpixels.substance.internal.utils.icon.CheckBoxMenuItemIcon
-
- All Implemented Interfaces:
Icon,UIResource
public class CheckBoxMenuItemIcon extends Object implements Icon, UIResource
Icon for theJCheckBoxMenuItems.
-
-
Constructor Summary
Constructors Constructor Description CheckBoxMenuItemIcon(JMenuItem menuItem, int size)Creates a new icon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()intgetIconWidth()voidpaintIcon(Component c, Graphics g, int x, int y)
-
-
-
Constructor Detail
-
CheckBoxMenuItemIcon
public CheckBoxMenuItemIcon(JMenuItem menuItem, int size)
Creates a new icon.- Parameters:
menuItem- The corresponding menu item.size- The size ofthisicon.
-
-
Method Detail
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfaceIcon
-
-