Uses of Interface
ballwar.model.IPaintStrategy

Packages that use IPaintStrategy
ballwar.controller   
ballwar.model   
ballwar.model.paint   
 

Uses of IPaintStrategy in ballwar.controller
 

Methods in ballwar.controller that return IPaintStrategy
 IPaintStrategy BallControl.IPaintFac.make()
          Instantiate an IPaintStrategy
 

Uses of IPaintStrategy in ballwar.model
 

Fields in ballwar.model declared as IPaintStrategy
private  IPaintStrategy Ball._paintStrategy
          The paint strategy used by the ball
static IPaintStrategy IPaintStrategy.NullObject
          The singleton null object instance for this interface, which does nothing.
 

Methods in ballwar.model that return IPaintStrategy
 IPaintStrategy Ball.getPaintStrategy()
          Returns the current paint strategy of this Ball
 

Methods in ballwar.model with parameters of type IPaintStrategy
 Ball BallModel.loadBall(IUpdateStrategy strategy, IPaintStrategy pstrategy)
           
 void BallModel.loadSwitcherBall(IPaintStrategy pstrategy)
          Loads a ball with a switcher strategy into the system.
 void Ball.setPaintStrategy(IPaintStrategy pstrategy)
          Sets the current strategy of this Ball to the given strategy
 

Constructors in ballwar.model with parameters of type IPaintStrategy
Ball(IBallEnvironment env, IUpdateStrategy strategy, IPaintStrategy pstrategy)
          Constructor for a ball.
 

Uses of IPaintStrategy in ballwar.model.paint
 

Classes in ballwar.model.paint that implement IPaintStrategy
 class ADecoratorPaintStrategy
          Abstract class that provides default behavior for subclasses that will decorate another IPaintStrategy to add functionality to that strategy.
 class AnimatePaintStrategy
          Concrete paint strategy that cycles through a sequence of paint strategies, painting one per paint update.
 class APaintStrategy
          An abstract paint strategy that provides default behavior for its subclasses.
 class BallPaintStrategy
          Paint strategy that paints a filled circle with the Ball's radius.
 class BirdSheepImagePaintStrategy
          An example of an ImagePaintStrategy that randomly picks one of two animated image files to display when it is instantiated.
 class EllipsePaintStrategy
          Paint strategy to paint an ellipse shape
 class Fish1PaintStrategy
          Paint strategy that paints a fish-shaped Polygon generated by a Fish1PolyfonFactory.
 class Fish2PaintStrategy
          Paint strategy that paints a fish-shaped Polygon generated by a Fish2PolyfonFactory.
 class FixedColorDecoratorPaintStrategy
          Decorator paint strategy that decorates another IPaintStrategy and causes the painted color to always be a specified, fixed color.
 class ImagePaintStrategy
          Paint strategy that paints an image from a file, scaled to the host Ball's radius.
 class MultiPaintStrategy
          A composite design pattern exension of APaintStrategy that paints a set of paint strategies.
 class NiceFishPaintStrategy
          Subclass of MultiPaintStrategy that uses a SwimFishPaintStrategy and an EllipsePaintStrategy to paint a swimming fish shape that has an eye.
 class RectanglePaintStrategy
          Concrete paint strategy that paints a rectangular shape scaled to the size of the ball.
 class ShapePaintStrategy
          Concrete class that defines invariant painting behaviors for all Shape subclasses.
 class SquarePaintStrategy
          Paint strategy that paints a filled square with the Ball's radius.
 class SwimFishPaintStrategy
          Subclass of AnimatePaintStrategy that alternates between a Fish1PaintStrategy and a Fish2PaintStrategy.
 

Fields in ballwar.model.paint declared as IPaintStrategy
private  IPaintStrategy ADecoratorPaintStrategy.decoree
          The "decoree" paint strategy whose methods are being augmented by this decorator paint strategy.
private  IPaintStrategy[] AnimatePaintStrategy.paintStrats
          The paint strategies to cycle through
private  IPaintStrategy[] MultiPaintStrategy.pstrats
          The set of paint strategies to paint
 

Constructors in ballwar.model.paint with parameters of type IPaintStrategy
ADecoratorPaintStrategy(IPaintStrategy decoree)
          Constructor that takes the decoree paint strategy
AnimatePaintStrategy(AffineTransform at, IPaintStrategy... pstrats)
          Constructor that uses the supplied AffineTransform for internal use.
AnimatePaintStrategy(IPaintStrategy... pstrats)
          Constructor that instantiates an AffineTransform for internal use.
FixedColorDecoratorPaintStrategy(Color color, IPaintStrategy decoree)
          Constructor that
MultiPaintStrategy(AffineTransform at, IPaintStrategy... pstrats)
          Constructor that takes the paint strategies that will part of the composite.
MultiPaintStrategy(IPaintStrategy... pstrats)
          Constructor that takes the paint strategies that will part of the composite.