swingx
Version 2009-07-31

org.jdesktop.swingx.painter
Class PainterIcon

java.lang.Object
  extended by org.jdesktop.swingx.painter.PainterIcon
All Implemented Interfaces:
Icon

public class PainterIcon
extends Object
implements Icon


Constructor Summary
PainterIcon(Dimension size)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 Painter getPainter()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setPainter(Painter painter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PainterIcon

public PainterIcon(Dimension size)
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

getPainter

public Painter getPainter()

setPainter

public void setPainter(Painter painter)

swingx
Version 2009-07-31