Package com.jgoodies.looks.plastic
Class PlasticXPIconFactory.RadioButtonIcon
- java.lang.Object
-
- com.jgoodies.looks.plastic.PlasticXPIconFactory.RadioButtonIcon
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.Icon
,javax.swing.plaf.UIResource
- Enclosing class:
- PlasticXPIconFactory
private static final class PlasticXPIconFactory.RadioButtonIcon 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 java.awt.Stroke
FOCUS_STROKE
private static int
SIZE
-
Constructor Summary
Constructors Modifier Constructor Description private
RadioButtonIcon()
-
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 w, int h)
private static void
drawCheck(java.awt.Graphics2D g2, java.awt.Component c, boolean enabled, int x, int y, int w, int h)
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 w, int h)
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 w, int h)
-
drawCheck
private static void drawCheck(java.awt.Graphics2D g2, java.awt.Component c, boolean enabled, int x, int y, int w, int h)
-
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 w, int h)
-
-