Skip navigation links
A B C D E F G I L M N P R S T U V W _ 

B

Ball - Class in ballworld.model
An abstract ball that moves in a line with its given velocity and bounces off the walls of a rectangularly shaped container.
Ball(Point, int, Point, Color, Component, IUpdateStrategy, IPaintStrategy) - Constructor for class ballworld.model.Ball
Initializes this Ball to a given center, radius, color, containing walls, and the NullStrategy to move in a straight line.
ball - Variable in class ballworld.model.paint.strategy.BallPaintStrategy
Unit sized circle used as a prototype
BallControl - Class in ballworld.controller
The "Controller" in a Model-View-Controller architecture Sets up the appropriate wiring between the model and the view.
BallControl() - Constructor for class ballworld.controller.BallControl
This constructor is called when the controller is being run as an applet.
BallControl(int) - Constructor for class ballworld.controller.BallControl
Constructor for the BallControl class Instantiates the BallGUI frame with the required ILambdas for making a ball, clearing the balls from the screen and for painting the balls onto the Container Starts the timer up.
BallGUI<TStrategyDropListItem,TPaintDropListItem> - Class in ballworld.view
A subclass of JFrame containing the various GUI components specified in the program behavior specification.
BallGUI(IModelControlAdapter<TStrategyDropListItem, TPaintDropListItem>, IModelUpdateAdapter) - Constructor for class ballworld.view.BallGUI
The main system view
BallModel - Class in ballworld.model
The model that represents the balls and their associated control systems.
BallModel(IViewControlAdapter, IViewUpdateAdapter) - Constructor for class ballworld.model.BallModel
Constructor for the model
BallPaintStrategy - Class in ballworld.model.paint.strategy
Paint strategy that paints a filled circle with the Ball's radius.
BallPaintStrategy() - Constructor for class ballworld.model.paint.strategy.BallPaintStrategy
No parameter constructor that creates a 1 pixel radius ball at the origin.
BallPaintStrategy(AffineTransform, double, double, double, double) - Constructor for class ballworld.model.paint.strategy.BallPaintStrategy
Constructor that allows one to create the prototype ball of arbitrary dimension and location.
ballworld.controller - package ballworld.controller
 
ballworld.model - package ballworld.model
 
ballworld.model.paint - package ballworld.model.paint
 
ballworld.model.paint.shape - package ballworld.model.paint.shape
 
ballworld.model.paint.strategy - package ballworld.model.paint.strategy
 
ballworld.model.strategy - package ballworld.model.strategy
 
ballworld.view - package ballworld.view
 
BirdSheepImagePaintStrategy - Class in ballworld.model.paint.strategy
An example of an ImagePaintStrategy that randomly picks one of two animated image files to display when it is instantiated.
BirdSheepImagePaintStrategy() - Constructor for class ballworld.model.paint.strategy.BirdSheepImagePaintStrategy
No-parameter constructor that instantiates the AffineTransform used internally and randomly loads one of two files: ballwar\model\paint\images\humbird4.gif or ballwar\model\paint\images\img104c.gif with a fill factor of 0.5.
bounce() - Method in class ballworld.model.Ball
Checks if the ball needs to bounce off the wall of its container
BreathingStrategy - Class in ballworld.model.strategy
Strategy to change the context ball's radius in a random sinusoidal manner
BreathingStrategy() - Constructor for class ballworld.model.strategy.BreathingStrategy
 
A B C D E F G I L M N P R S T U V W _ 
Skip navigation links