public class NiceFishPaintStrategy extends MultiPaintStrategy
NullObject
Constructor and Description |
---|
NiceFishPaintStrategy()
No-parameter constructor that instantiates the AffineTransform for internal use.
|
NiceFishPaintStrategy(java.awt.geom.AffineTransform at)
Constructor that uses an externally supplied AFfineTransform for
internal use.
|
Modifier and Type | Method and Description |
---|---|
protected void |
paintCfg(java.awt.Graphics g,
Ball host)
Override paintCfg to add the transform needed to
keep the fish upright at all times.
|
init, paintXfrm
getAT, paint
public NiceFishPaintStrategy()
public NiceFishPaintStrategy(java.awt.geom.AffineTransform at)
at
- The AffineTransform to use.protected void paintCfg(java.awt.Graphics g, Ball host)
paintCfg
in class APaintStrategy
g
- The Graphics context that will be drawn upon.host
- The Ball to be painted.