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, paintCfgprivate 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 APaintStrategyg - The Graphics context to paint upon.host - The host Ballat - The AffineTransform to usepublic void init(Ball host)
init in interface IPaintStrategyinit in class APaintStrategyhost - The host Ball