|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.metal.MetalCheckBoxIcon
public class MetalCheckBoxIcon
An Icon
used by the MetalCheckBoxUI
class.
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetalCheckBoxIcon()
Method Detail |
---|
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.
paintIcon
in interface Icon
c
- the Component to draw on (gets casted to JCheckBox)g
- the Graphics context to draw withx
- the X positiony
- the Y position
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |