ch.randelshofer.quaqua.icon
Class FocusedIcon
java.lang.Object
ch.randelshofer.quaqua.border.AbstractFocusedPainter
ch.randelshofer.quaqua.icon.FocusedIcon
- All Implemented Interfaces:
- javax.swing.Icon
public class FocusedIcon
- extends AbstractFocusedPainter
- implements javax.swing.Icon
Draws a focus ring around the opaque pixels of an icon.
The icon must provide space for the focus ring.
- Version:
- 1.0 2011-07-26 Created.
- Author:
- Werner Randelshofer
Constructor Summary |
FocusedIcon(javax.swing.Icon actualIcon)
|
Method Summary |
protected void |
doPaint(java.awt.Component c,
java.awt.Graphics g,
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FocusedIcon
public FocusedIcon(javax.swing.Icon actualIcon)
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface javax.swing.Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface javax.swing.Icon
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface javax.swing.Icon
doPaint
protected void doPaint(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
- Specified by:
doPaint
in class AbstractFocusedPainter