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(Component c,
Graphics g,
int x,
int y) |
void |
setState(int state)
Sets the state of the icon to paint.
|
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public void setState(int state)
TristateCheckBox.STATE_SELECTED
, TristateCheckBox.STATE_UNSELECTED
or
TristateCheckBox.STATE_MIXED
.state
- the statepublic int getState()
setState(int)