| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectballwar.model.paint.APaintStrategy
public abstract class APaintStrategy
An abstract paint strategy that provides default behavior for its subclasses.
| Field Summary | |
|---|---|
| protected  AffineTransform | atThe affine transform used by this paint strategy to translate, scale and rotate the image. | 
| Fields inherited from interface ballwar.model.IPaintStrategy | 
|---|
| NullObject | 
| Constructor Summary | |
|---|---|
| APaintStrategy(AffineTransform at)Constructor that initializes the strategy with an affine transform | |
| Method Summary | |
|---|---|
|  void | init(Ball context)By default, do nothing for initialization. | 
|  void | paint(Graphics g,
      Ball host)Paints on the given graphics context using the color, scale and direction provided by the host. | 
| protected  void | paintCfg(Graphics g,
         Ball host)Used for doing additional configurations. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface ballwar.model.IPaintStrategy | 
|---|
| paintXfrm | 
| Field Detail | 
|---|
protected AffineTransform at
| Constructor Detail | 
|---|
public APaintStrategy(AffineTransform at)
at - The AffineTransform for this paint strategy to use.| Method Detail | 
|---|
public void paint(Graphics g,
                  Ball host)
paint in interface IPaintStrategyg - The graphics context to draw upon.host - The host ball.public void init(Ball context)
init in interface IPaintStrategy
protected void paintCfg(Graphics g,
                        Ball host)
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 | |||||||||