public abstract class MultiPaintStrategy extends APaintStrategy
Modifier and Type | Field and Description |
---|---|
private APaintStrategy[] |
pstrats
The set of paint strategies to paint
|
NullObject
Constructor and Description |
---|
MultiPaintStrategy(java.awt.geom.AffineTransform at,
APaintStrategy... pstrats)
Constructor that takes the paint strategies that will part of the
composite.
|
MultiPaintStrategy(APaintStrategy... pstrats)
Constructor that takes the paint strategies that will part of the
composite.
|
Modifier and Type | Method and Description |
---|---|
void |
init(Ball host)
Delegates to all the IPaintStrategies in the composite.
|
void |
paintXfrm(java.awt.Graphics g,
Ball host,
java.awt.geom.AffineTransform at)
Delegates to all the IPaintStrategies in the composite.
|
getAT, paint, paintCfg
private APaintStrategy[] pstrats
public MultiPaintStrategy(APaintStrategy... pstrats)
pstrats
- Vararg parameter that are the paint strategies that will make
up the composite.public MultiPaintStrategy(java.awt.geom.AffineTransform at, APaintStrategy... pstrats)
at
- The AffineTransform to use.pstrats
- Vararg parameter that are the paint strategies that will make
up the composite.public void paintXfrm(java.awt.Graphics g, Ball host, java.awt.geom.AffineTransform at)
paintXfrm
in class APaintStrategy
g
- The Graphics context to paint upon.host
- The host Ballat
- The AffineTransform to usepublic void init(Ball host)
init
in interface IPaintStrategy
init
in class APaintStrategy
host
- The host Ball