|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPaintStrategy
Interface that represents a strategy used by a Ball when asked to perform variant paint operations.
| Field Summary | |
|---|---|
static IPaintStrategy |
NullObject
The singleton null object instance for this interface, which does nothing. |
| Method Summary | |
|---|---|
void |
init(Ball host)
Initializes the given ball. |
void |
paint(java.awt.Graphics g,
Ball host)
Paints the host onto the given Graphics context. |
| Field Detail |
|---|
static final IPaintStrategy NullObject
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||