com.croftsoft.core.animation.painter
Class SpacePainter
java.lang.Object
com.croftsoft.core.animation.painter.SpacePainter
- All Implemented Interfaces:
- ComponentPainter
public final class SpacePainter
- extends Object
- implements ComponentPainter
Fills an area of the component with stars against black space.
- Since:
- 2002-03-28
- Version:
- 2003-07-05
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpacePainter
public SpacePainter(Rectangle paintArea,
double starDensity)
- Main constructor method.
- Parameters:
paintArea
- If null, component.getBounds() will be used.
SpacePainter
public SpacePainter()
- Convenience constructor method.
setPaintArea
public void setPaintArea(Rectangle paintArea)
- Parameters:
paintArea
- If null, component.getBounds() will be used.
paint
public void paint(JComponent component,
Graphics2D graphics)
- Specified by:
paint
in interface ComponentPainter
CroftSoft Core Javadoc (2008-09-28 20:58:02)