com.croftsoft.core.animation.painter
Class CenterPainter

java.lang.Object
  extended by com.croftsoft.core.animation.painter.CenterPainter
All Implemented Interfaces:
ComponentPainter

public final class CenterPainter
extends Object
implements ComponentPainter

Centers the image on the Component without scaling.

Since:
2006-05-10
Version:
$Date: 2006/05/17 18:28:57 $
See Also:
ScalePainter, StretchPainter
Author:
David Wallace Croft

Constructor Summary
CenterPainter()
           
CenterPainter(Image image)
           
 
Method Summary
 Image getImage()
           
 void paint(JComponent component, Graphics2D graphics)
           
 void setImage(Image image)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CenterPainter

public CenterPainter(Image image)

CenterPainter

public CenterPainter()
Method Detail

getImage

public Image getImage()

setImage

public void setImage(Image image)

paint

public void paint(JComponent component,
                  Graphics2D graphics)
Specified by:
paint in interface ComponentPainter

CroftSoft Javadoc

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