javax.swing.Icon
public class CheckBoxIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor | Description |
---|---|
CheckBoxIcon() |
The constructor.
|
Modifier and Type | Method | 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.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void setState(int state)
TristateCheckBox.STATE_SELECTED
, TristateCheckBox.STATE_UNSELECTED
or
TristateCheckBox.STATE_MIXED
.state
- the statepublic int getState()
setState(int)