Package | Description |
---|---|
ballworld.model.paint | |
ballworld.model.paint.strategy |
Modifier and Type | Class and Description |
---|---|
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 |
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 extension of APaintStrategy that paints a set of
paint strategies.
|
class |
ShapePaintStrategy
Concrete class that defines invariant painting behaviors to paint
Shape objects for all its subclasses.
|
class |
UprightImagePaintStrategy
An image painting strategy that adds a paintCfg override that keeps the image upright no matter which way it is going.
|
class |
UprightShapePaintStrategy
A shape painting strategy that adds a paintCfg override that keeps the shape upright no matter which direction it is going.
|
Modifier and Type | Field and Description |
---|---|
private APaintStrategy |
ADecoratorPaintStrategy.decoree
The "decoree" paint strategy whose methods are being augmented
by this decorator paint strategy.
|
private APaintStrategy[] |
AnimatePaintStrategy.paintStrats
The paint strategies to cycle through
|
private APaintStrategy[] |
MultiPaintStrategy.pstrats
The set of paint strategies to paint
|
Constructor and Description |
---|
ADecoratorPaintStrategy(APaintStrategy decoree)
Constructor that takes the decoree paint strategy
|
AnimatePaintStrategy(java.awt.geom.AffineTransform at,
APaintStrategy... pstrats)
Constructor that uses the supplied AffineTransform for internal use.
|
AnimatePaintStrategy(APaintStrategy... pstrats)
Constructor that instantiates an AffineTransform for internal use.
|
FixedColorDecoratorPaintStrategy(java.awt.Color color,
APaintStrategy decoree)
Constructor that takes the fixed color and the decoree strategy
|
MultiPaintStrategy(java.awt.geom.AffineTransform at,
APaintStrategy... pstrats)
Constructor that takes the paint strategies that will part of the
composite.
|
MultiPaintStrategy(APaintStrategy... pstrats)
Constructor that takes the paint strategies that will part of the
composite.
|
Modifier and Type | Class and Description |
---|---|
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 |
MarioSonicImagePaintStrategy
Paint strategy that uses either an animated Mario or Sonic image.
|
class |
NiceFishPaintStrategy
Subclass of MultiPaintStrategy that uses a SwimFishPaintStrategy and an
EllipsePaintStrategy to paint a swimming fish shape that
has an eye.
|
class |
PlanetImagePaintStrategy
Paint strategy that upon instantiation, randomly picks one image from an array of images to use.
|
class |
RectanglePaintStrategy
Concrete paint strategy that paints a rectangular shape
scaled to the size of the ball.
|
class |
SharkImagePaintStrategy
Paint strategy that paints a Black Tip Reef shark as its image.
|
class |
SoccerImagePaintStrategy
Paint strategy that paints a FIFA soccer ball as its image
|
class |
SwimFishPaintStrategy
Subclass of AnimatePaintStrategy that alternates between
a Fish1PaintStrategy and a Fish2PaintStrategy.
|