com.croftsoft.core.animation.painter
Class CenterPainter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CenterPainter
public CenterPainter(Image image)
CenterPainter
public CenterPainter()
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 Core Javadoc (2008-09-28 20:58:02)