Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
U
W
_
A
addComponent(Component)
- Method in class ballwar.view.
BallGUI
Adds the given Component to the control panel.
addDisplayCmd(ILambda)
- Method in class ballwar.model.
BallModel
Adds a display command (ILambda) used to display messages onto the view.
addDisplayCmd(ILambda)
- Method in interface ballwar.model.
IBallEnvironment
Adds a command that will be run to whenever the view requests a display string to be displayed.
addItem(Object)
- Method in class ballwar.view.
OptionPanel
Adds the given item to the drop-list.
addKeyCmd(String, ILambda)
- Method in class ballwar.model.
BallModel
addKeyCmd(String, ILambda)
- Method in interface ballwar.model.
IBallEnvironment
Associates a key with a behavior (command).
addKeyCmd(String, ILambda)
- Method in interface ballwar.model.
IViewCtrlAdapter
Asks the GUI to associate the given key with the given behavior.
addKeyCmd(String, ILambda)
- Method in class ballwar.view.
BallGUI
Adds the given key such that whenever that key is pressed the given command (AbstractAction) is performed.
addPaintStrategy(String)
- Method in interface ballwar.view.
IBallCreateAdapter
Add a paint strategy to the the model.
addStrategy(String)
- Method in interface ballwar.view.
IBallCreateAdapter
Add a strategy to the the model.
ADecoratorPaintStrategy
- Class in
ballwar.model.paint
Abstract class that provides default behavior for subclasses that will decorate another IPaintStrategy to add functionality to that strategy.
ADecoratorPaintStrategy(IPaintStrategy)
- Constructor for class ballwar.model.paint.
ADecoratorPaintStrategy
Constructor that takes the decoree paint strategy
AElasticMassCollisionCmd
- Class in
ballwar.model
Superclass for commands involving elastic collisions of round balls with individual masses.
AElasticMassCollisionCmd()
- Constructor for class ballwar.model.
AElasticMassCollisionCmd
angle
- Variable in class ballwar.model.strategy.
CurveStrategy
The incremental amount to rotate the context's velocity by each time its updateState is called (in radians).
AnimatePaintStrategy
- Class in
ballwar.model.paint
Concrete paint strategy that cycles through a sequence of paint strategies, painting one per paint update.
AnimatePaintStrategy(IPaintStrategy...)
- Constructor for class ballwar.model.paint.
AnimatePaintStrategy
Constructor that instantiates an AffineTransform for internal use.
AnimatePaintStrategy(AffineTransform, IPaintStrategy...)
- Constructor for class ballwar.model.paint.
AnimatePaintStrategy
Constructor that uses the supplied AffineTransform for internal use.
ANoOpStrategy
- Class in
ballwar.model.strategy
Abstract strategy that provides default behaviors that do nothing.
ANoOpStrategy()
- Constructor for class ballwar.model.strategy.
ANoOpStrategy
APaintStrategy
- Class in
ballwar.model.paint
An abstract paint strategy that provides default behavior for its subclasses.
APaintStrategy(AffineTransform)
- Constructor for class ballwar.model.paint.
APaintStrategy
Constructor that initializes the strategy with an affine transform
apply(Ball)
- Method in interface ballwar.model.
IBallCmd
The method run by the ball's update method which is called when the ball is updated by the dispatcher.
apply(Object)
- Method in interface util.
ILambda
Performs some computation with a given input Object.
ARROWSEND
- Static variable in interface ballwar.model.
IMovementKeys
A predefined set of movement keys where the arrow keys ("UP", "DOWN", "LEFT" and "RIGHT") are associated with their respective directions and the "END" key is associated with stopping.
at
- Variable in class ballwar.model.paint.
APaintStrategy
The affine transform used by this paint strategy to translate, scale and rotate the image.
at
- Variable in class ballwar.model.paint.
BallPaintStrategy
The AffineTransformed used for internal calculations.
at
- Variable in class ballwar.model.paint.shape.
PolygonFactory
The AffineTransform used for internal calculations
at
- Variable in class ballwar.model.paint.
SquarePaintStrategy
The AffineTransformed used for internal calculations.
AUpdateStrategy
- Class in
ballwar.model.strategy
Abstract strategy that provides random initialization of a ball.
AUpdateStrategy()
- Constructor for class ballwar.model.strategy.
AUpdateStrategy
autoWidth()
- Method in class ballwar.view.
BallGUI
Automatically adjusts the width of the GUI to its minimum size such that all the controls can be seen.
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
U
W
_