public class CheckBoxIcon
extends java.lang.Object
implements javax.swing.Icon
| Constructor and Description |
|---|
CheckBoxIcon()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight() |
int |
getIconWidth() |
int |
getState()
Gets the state of the icon to paint.
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
void |
setState(int state)
Sets the state of the icon to paint.
|
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic void setState(int state)
TristateCheckBox.STATE_SELECTED, TristateCheckBox.STATE_UNSELECTED or
TristateCheckBox.STATE_MIXED.state - the statepublic int getState()
setState(int)