javax.swing.plaf.metal
public class MetalCheckBoxIcon extends Object implements Icon, UIResource, Serializable
Constructor Summary | |
---|---|
MetalCheckBoxIcon()
Creates a new MetalCheckBoxIcon instance. |
Method Summary | |
---|---|
protected void | drawCheck(Component c, Graphics g, int x, int y)
Draws the check in the CheckBox.
|
protected int | getControlSize()
Returns the size (both X and Y) of the checkbox icon.
|
int | getIconHeight()
Returns the height of the icon in pixels.
|
int | getIconWidth()
Returns the width of the icon in pixels.
|
void | paintIcon(Component c, Graphics g, int x, int y)
Paints the icon. |
Parameters: c the component to draw on g the Graphics context to draw with x the X position y the Y position
Returns: the size of the checkbox icon
Returns: the height of the icon in pixels
Returns: the width of the icon in pixels
Parameters: c the Component to draw on (gets casted to JCheckBox) g the Graphics context to draw with x the X position y the Y position