Package com.jgoodies.looks.plastic
Class PlasticXPIconFactory.CheckBoxIcon
- java.lang.Object
-
- com.jgoodies.looks.plastic.PlasticXPIconFactory.CheckBoxIcon
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.Icon
,javax.swing.plaf.UIResource
- Enclosing class:
- PlasticXPIconFactory
private static final class PlasticXPIconFactory.CheckBoxIcon extends java.lang.Object implements javax.swing.Icon, javax.swing.plaf.UIResource, java.io.Serializable
Paints the the icon and focus border for Plastic XP check boxes.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
SIZE
-
Constructor Summary
Constructors Modifier Constructor Description private
CheckBoxIcon()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
drawBorder(java.awt.Graphics2D g2, boolean enabled, int x, int y, int width, int height)
private static void
drawCheck(java.awt.Graphics2D g2, boolean enabled, int x, int y, int width, int height)
private static void
drawFill(java.awt.Graphics2D g2, boolean pressed, int x, int y, int w, int h)
private static void
drawFocus(java.awt.Graphics2D g2, int x, int y, int width, int height)
int
getIconHeight()
int
getIconWidth()
void
paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
-
-
-
Method Detail
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interfacejavax.swing.Icon
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
- Specified by:
paintIcon
in interfacejavax.swing.Icon
-
drawBorder
private static void drawBorder(java.awt.Graphics2D g2, boolean enabled, int x, int y, int width, int height)
-
drawCheck
private static void drawCheck(java.awt.Graphics2D g2, boolean enabled, int x, int y, int width, int height)
-
drawFill
private static void drawFill(java.awt.Graphics2D g2, boolean pressed, int x, int y, int w, int h)
-
drawFocus
private static void drawFocus(java.awt.Graphics2D g2, int x, int y, int width, int height)
-
-