|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectballworld.model.paint.APaintStrategy
ballworld.model.paint.MultiPaintStrategy
ballworld.model.paint.strategy.NiceFishPaintStrategy
public class NiceFishPaintStrategy
Subclass of MultiPaintStrategy that uses a SwimFishPaintStrategy and an EllipsePaintStrategy to paint a swimming fish shape that has an eye.
| Field Summary |
|---|
| Fields inherited from class ballworld.model.paint.APaintStrategy |
|---|
at |
| Fields inherited from interface ballworld.model.IPaintStrategy |
|---|
NullObject |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
protected void |
paintCfg(java.awt.Graphics g,
Ball host)
Override paintCfg to add the transform needed to keep the fish upright at all times. |
| Methods inherited from class ballworld.model.paint.MultiPaintStrategy |
|---|
init, paintXfrm |
| Methods inherited from class ballworld.model.paint.APaintStrategy |
|---|
paint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NiceFishPaintStrategy()
public NiceFishPaintStrategy(java.awt.geom.AffineTransform at)
at - The AffineTransform to use.| Method Detail |
|---|
protected void paintCfg(java.awt.Graphics g,
Ball host)
paintCfg in class APaintStrategyg - The Graphics context that will be drawn upon.host - The Ball to be painted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||