Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua.icon
Class FocusedIcon

java.lang.Object
  extended by ch.randelshofer.quaqua.border.AbstractFocusedPainter
      extended by 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 ch.randelshofer.quaqua.border.AbstractFocusedPainter
paint, paintFocusRing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusedIcon

public FocusedIcon(javax.swing.Icon actualIcon)
Method Detail

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

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.