ballworld.model.paint.strategy
Class SharkImagePaintStrategy

java.lang.Object
  extended by ballworld.model.paint.APaintStrategy
      extended by ballworld.model.paint.ImagePaintStrategy
          extended by ballworld.model.paint.UprightImagePaintStrategy
              extended by ballworld.model.paint.strategy.SharkImagePaintStrategy
All Implemented Interfaces:
IPaintStrategy

public class SharkImagePaintStrategy
extends UprightImagePaintStrategy

Paint strategy that paints a Black Tip Reef shark as its image.

Author:
swong

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

SharkImagePaintStrategy

public SharkImagePaintStrategy()
Constructor loads the shark image

Method Detail

paintCfg

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. To turn off the "keep upright" feature, simply comment out the superclass call.

Overrides:
paintCfg in class UprightImagePaintStrategy
Parameters:
g - The Graphics context that will be drawn upon.
host - The Ball to be painted.