public class SquarePaintStrategy extends java.lang.Object implements IPaintStrategy
NullObject| Constructor and Description |
|---|
SquarePaintStrategy()
No parameter constructor for the class
|
public SquarePaintStrategy()
public void paint(java.awt.Graphics g,
Ball host)
paint in interface IPaintStrategyg - The graphics context to draw upon.host - The host ball.public void init(Ball context)
init in interface IPaintStrategycontext - The ball to initialize.