- paint(Graphics) - Method in class ballworld.model.Ball
-
Paints the image of the ball onto a Graphics object.
- paint(Graphics, Ball) - Method in interface ballworld.model.IPaintStrategy
-
Paints the host onto the given Graphics context.
- paint(Graphics, Ball) - Method in class ballworld.model.paint.ADecoratorPaintStrategy
-
Default behavior is to simply delegate to the decoree's paint method
- paint(Graphics, Ball) - Method in class ballworld.model.paint.APaintStrategy
-
Paints on the given graphics context using the color, scale and
direction provided by the host.
- paint(Graphics, Ball) - Method in class ballworld.model.paint.strategy.BallPaintStrategy
-
Paints on the given graphics context using the color, scale and
direction provided by the host.
- paint(Graphics, Ball) - Method in class ballworld.model.paint.strategy.SquarePaintStrategy
-
Paints a square on the given graphics context using the color and radius
provided by the host.
- paintCfg(Graphics, Ball) - Method in class ballworld.model.paint.APaintStrategy
-
Used for doing additional configurations by a subclass.
- paintCfg(Graphics, Ball) - Method in class ballworld.model.paint.strategy.NiceFishPaintStrategy
-
Override paintCfg to add the transform needed to
keep the fish upright at all times.
- paintCfg(Graphics, Ball) - Method in class ballworld.model.paint.strategy.SharkImagePaintStrategy
-
This is just provided as an easy means to demonstrate the effects of flipping the image
to keep the image upright.
- paintCfg(Graphics, Ball) - Method in class ballworld.model.paint.UprightImagePaintStrategy
-
Augments the inherited paint method to add flipping of the image to keep
it upright whenever the ball is going towards the left.
- paintCfg(Graphics, Ball) - Method in class ballworld.model.paint.UprightShapePaintStrategy
-
Override paintCfg to add the transform needed to
keep the shape upright at all times.
- paintStrats - Variable in class ballworld.model.paint.AnimatePaintStrategy
-
The paint strategies to cycle through
- paintXfrm(Graphics, Ball, AffineTransform) - Method in class ballworld.model.paint.ADecoratorPaintStrategy
-
Default behavior is to simply delegate to the decoree's paintXfrm method
- paintXfrm(Graphics, Ball, AffineTransform) - Method in class ballworld.model.paint.AnimatePaintStrategy
-
Paints the currently indexed paint strategy on the given Graphics context
using the supplied AffineTransform.
- paintXfrm(Graphics, Ball, AffineTransform) - Method in class ballworld.model.paint.APaintStrategy
-
Paints the host onto the given Graphics context.
- paintXfrm(Graphics, Ball, AffineTransform) - Method in class ballworld.model.paint.FixedColorDecoratorPaintStrategy
-
- paintXfrm(Graphics, Ball, AffineTransform) - Method in class ballworld.model.paint.ImagePaintStrategy
-
Draws the image on the given Graphics context using the given affine
transform in combination with the local affine transform.
- paintXfrm(Graphics, Ball, AffineTransform) - Method in class ballworld.model.paint.MultiPaintStrategy
-
Delegates to all the IPaintStrategies in the composite.
- paintXfrm(Graphics, Ball, AffineTransform) - Method in class ballworld.model.paint.ShapePaintStrategy
-
Paints the shape on the given Graphics context using the
supplied AffineTransform.
- paintXfrm(Graphics, Ball, AffineTransform) - Method in class ballworld.model.paint.strategy.BallPaintStrategy
-
Paints a transformed circle, as per the given AffineTransform
Uses color already set in Graphics context
- PlanetImagePaintStrategy - Class in ballworld.model.paint.strategy
-
Paint strategy that upon instantiation, randomly picks one image from an array of images to use.
- PlanetImagePaintStrategy() - Constructor for class ballworld.model.paint.strategy.PlanetImagePaintStrategy
-
Randomly pick one of the image files to use when being constructed.
- poly - Variable in class ballworld.model.paint.shape.PolygonFactory
-
The Polygon shape to use as the prototype.
- PolygonFactory - Class in ballworld.model.paint.shape
-
Concrete IShapeFactory that provides the invariant behavior to
instantiate a Shape that is a Polygon.
- PolygonFactory(AffineTransform, double, Point...) - Constructor for class ballworld.model.paint.shape.PolygonFactory
-
Constructor that uses an externally defined AffineTransform for internal
use plus takes the defining points of the prototype Polygon and
a scale factor to scale the given points to the desired unit size.
- pstrats - Variable in class ballworld.model.paint.MultiPaintStrategy
-
The set of paint strategies to paint