JIDE 3.5.15

com.jidesoft.icons
Class CheckBoxIcon

java.lang.Object
  extended by com.jidesoft.icons.CheckBoxIcon
All Implemented Interfaces:
Icon

public class CheckBoxIcon
extends Object
implements Icon

The icon to paint CheckBox icon safely with any L&F.

Since:
3.3.7

Constructor Summary
CheckBoxIcon()
          The constructor.
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 int getState()
          Gets the state of the icon to paint.
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setState(int state)
          Sets the state of the icon to paint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckBoxIcon

public CheckBoxIcon()
The constructor.

Method Detail

paintIcon

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

getIconWidth

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

getIconHeight

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

setState

public void setState(int state)
Sets the state of the icon to paint.

The state could be TristateCheckBox.STATE_SELECTED, TristateCheckBox.STATE_UNSELECTED or TristateCheckBox.STATE_MIXED.

Parameters:
state - the state

getState

public int getState()
Gets the state of the icon to paint.

Returns:
the state.
See Also:
setState(int)

JIDE 3.5.15