com.croftsoft.core.animation.painter
Class IconPainter

java.lang.Object
  extended by com.croftsoft.core.animation.painter.AbstractXYPainter
      extended by com.croftsoft.core.animation.painter.IconPainter
All Implemented Interfaces:
ComponentPainter, XYPainter

public class IconPainter
extends AbstractXYPainter

Paints an Icon at an (x,y) position.

Since:
2002-02-14
Version:
2003-07-11
Author:
David Wallace Croft

Field Summary
protected  Icon icon
           
 
Fields inherited from class com.croftsoft.core.animation.painter.AbstractXYPainter
x, y
 
Constructor Summary
IconPainter(Icon icon)
           
IconPainter(int x, int y, Icon icon)
           
 
Method Summary
 Icon getIcon()
           
 void paint(JComponent component, Graphics2D graphics)
           
 void setIcon(Icon icon)
           
 
Methods inherited from class com.croftsoft.core.animation.painter.AbstractXYPainter
getX, getY, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

icon

protected Icon icon
Constructor Detail

IconPainter

public IconPainter(int x,
                   int y,
                   Icon icon)

IconPainter

public IconPainter(Icon icon)
Method Detail

getIcon

public Icon getIcon()

setIcon

public void setIcon(Icon icon)

paint

public void paint(JComponent component,
                  Graphics2D graphics)

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)