|
|||||||||
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(Graphics g,
Ball host)
Paints the host onto the given Graphics context. |
void |
paintXfrm(Graphics g,
Ball host,
AffineTransform at)
Paints the host onto the given Graphics context. |
Field Detail |
---|
static final IPaintStrategy NullObject
Method Detail |
---|
void paint(Graphics g, Ball host)
g
- The graphics context to draw upon.host
- The host ball.void paintXfrm(Graphics g, Ball host, AffineTransform at)
g
- The graphics context to draw upon.host
- The host ball.at
- The affine transform to use.void init(Ball host)
context
- The ball to initialize.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |