public interface IPaintStrategy
| Modifier and Type | Field and Description |
|---|---|
static IPaintStrategy |
NullObject
The singleton null object instance for this interface, which does nothing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(Ball host)
Initializes the given ball.
|
void |
paint(java.awt.Graphics g,
Ball host)
Paints the host onto the given Graphics context.
|
static final IPaintStrategy NullObject
void paint(java.awt.Graphics g,
Ball host)
g - The graphics context to draw upon.host - The host ball.void init(Ball host)
host - The ball to initialize.