JIDE 3.5.15

com.jidesoft.icons
Class MenuCheckIcon

java.lang.Object
  extended by com.jidesoft.icons.MenuCheckIcon
All Implemented Interfaces:
Serializable, Icon, UIResource

public class MenuCheckIcon
extends Object
implements Icon, UIResource, Serializable

Icon wrapper class for check icons. The only thing this class does is to check the selection before it really paints its wrapped icon. The reason we provide this class is that similar mechanism resides in Swing and we cannot override it. So if we just update the UI with normal icons, the icon could be displayed unexpectedly. With this icon wrapper class, you can get exactly the same behavior with Swing default icons.

See Also:
Serialized Form

Constructor Summary
MenuCheckIcon(ImageIcon icon)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuCheckIcon

public MenuCheckIcon(ImageIcon icon)
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

JIDE 3.5.15