javax.swing.plaf.metal
public class MetalCheckBoxIcon extends Object implements Icon, UIResource, Serializable
Icon
used by the MetalCheckBoxUI
class.Constructor and Description |
---|
MetalCheckBoxIcon()
Creates a new MetalCheckBoxIcon instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public MetalCheckBoxIcon()
protected void drawCheck(Component c, Graphics g, int x, int y)
c
- the component to draw ong
- the Graphics context to draw withx
- the X positiony
- the Y positionprotected int getControlSize()
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
drawCheck(java.awt.Component, java.awt.Graphics, int, int)
to draw
the check.