- main(String[]) - Static method in class ballworld.controller.BallControl
-
Entry point to the program.
- make() - Method in interface ballworld.model.IPaintStrategyFac
-
Instantiate the specific IPaintStrategy for which this factory is
defined.
- make() - Method in interface ballworld.model.IUpdateStrategyFac
-
Instantiate the specific IUpdateStrategy for which this factory is
defined.
- makeBall(TStrategyDropListItem, TPaintDropListItem) - Method in interface ballworld.view.IModelControlAdapter
-
Make a ball with the selected short update and paint strategy names.
- makePaintStrategyFac(String) - Method in class ballworld.model.BallModel
-
Returns an IPaintStrategyFac that can instantiate the strategy specified by
classname.
- makeShape(double, double, double, double) - Method in class ballworld.model.paint.shape.EllipseShapeFactory
-
Instantiates an ellipse
- makeShape(double, double, double, double) - Method in interface ballworld.model.paint.shape.IShapeFactory
-
Returns a Shape object centered at (x, y) and with the specified
x and y dimensions.
- makeShape(double, double, double, double) - Method in class ballworld.model.paint.shape.PolygonFactory
-
Instantiates a Shape object that is the prototype Polygon translated
by the given (x, y) point and scaled by given (xScale, yScale) factor
times the internal scaleFactor.
- makeShape(double, double, double, double) - Method in class ballworld.model.paint.shape.RectangleShapeFactory
-
Instantiates a Rectangle2D.Double object at the specified orign and size.
- makeSwitcherBall(TPaintDropListItem) - Method in interface ballworld.view.IModelControlAdapter
-
Make a switcher ball
- makeUpdateStrategyFac(String) - Method in class ballworld.model.BallModel
-
Returns an IUpdateStrategyFac that can instantiate the strategy specified by
classname.
- MarioSonicImagePaintStrategy - Class in ballworld.model.paint.strategy
-
Paint strategy that uses either an animated Mario or Sonic image.
- MarioSonicImagePaintStrategy() - Constructor for class ballworld.model.paint.strategy.MarioSonicImagePaintStrategy
-
No-parameter constructor that instantiates the AffineTransform used
internally and the following files with a 50% probability:
ballworld\model\paint\images\Sonic_animate.gif or
ballworld\model\paint\images\Mario_animate.gif with a fill factor of 0.5.
- move() - Method in class ballworld.model.Ball
-
Moves the ball's location by the X and Y increments specified by the
velocity property.
- MultiPaintStrategy - Class in ballworld.model.paint
-
A composite design pattern extension of APaintStrategy that paints a set of
paint strategies.
- MultiPaintStrategy(APaintStrategy...) - Constructor for class ballworld.model.paint.MultiPaintStrategy
-
Constructor that takes the paint strategies that will part of the
composite.
- MultiPaintStrategy(AffineTransform, APaintStrategy...) - Constructor for class ballworld.model.paint.MultiPaintStrategy
-
Constructor that takes the paint strategies that will part of the
composite.
- MultiStrategy - Class in ballworld.model.strategy
-
A composite strategy of two strategies.
- MultiStrategy(IUpdateStrategy, IUpdateStrategy) - Constructor for class ballworld.model.strategy.MultiStrategy
-
Constructor for the class