|
||||||||||
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.ImagePaintStrategy
ballworld.model.paint.UprightImagePaintStrategy
ballworld.model.paint.strategy.SharkImagePaintStrategy
public class SharkImagePaintStrategy
Paint strategy that paints a Black Tip Reef shark as its image.
Field Summary |
---|
Fields inherited from class ballworld.model.paint.ImagePaintStrategy |
---|
localAT |
Fields inherited from class ballworld.model.paint.APaintStrategy |
---|
at |
Fields inherited from interface ballworld.model.IPaintStrategy |
---|
NullObject |
Constructor Summary | |
---|---|
SharkImagePaintStrategy()
Constructor loads the shark image |
Method Summary | |
---|---|
protected void |
paintCfg(java.awt.Graphics g,
Ball host)
This is just provided as an easy means to demonstrate the effects of flipping the image to keep the image upright. |
Methods inherited from class ballworld.model.paint.ImagePaintStrategy |
---|
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 SharkImagePaintStrategy()
Method Detail |
---|
protected void paintCfg(java.awt.Graphics g, Ball host)
paintCfg
in class UprightImagePaintStrategy
g
- 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 |