Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
L
M
N
P
R
S
U
V
W
_
U
update(Observable, Object)
- Method in class ballworld.model.
Ball
Moves to the new position, updates the attributes of this Ball and paints it.
update(Object)
- Method in class ballworld.model.
BallModel
Update all the balls in the system, passing the given input parameter.
update()
- Method in interface ballworld.model.
IViewUpdateAdapter
Update the view, in response to a timer tick event.
update()
- Method in class ballworld.view.
BallGUI
update(Graphics)
- Method in interface ballworld.view.
IModelUpdateAdapter
Update the model, using the supplied Graphics object
updateState()
- Method in class ballworld.model.
Ball
updateState(Ball)
- Method in interface ballworld.model.
IUpdateStrategy
updateState(Ball)
- Method in class ballworld.model.strategy.
BreathingStrategy
Set the context's radius to the next value in the sinusoid.
updateState(Ball)
- Method in class ballworld.model.strategy.
Change1Strategy
Run all three composee strategies and if the count goes to zero, change the context's strategy.
updateState(Ball)
- Method in class ballworld.model.strategy.
Change2Strategy
Do nothing unless the count has gone to zero, then change the context's strategy
updateState(Ball)
- Method in class ballworld.model.strategy.
ColorStrategy
Set the context's color to a random color value.
updateState(Ball)
- Method in class ballworld.model.strategy.
CurveStrategy
Rotate the context's velocity by the turning angle
updateState(Ball)
- Method in class ballworld.model.strategy.
DrunkenStrategy
Randomly select one of the possible strategies and run it as the strategy for the context.
updateState(Ball)
- Method in class ballworld.model.strategy.
MultiStrategy
Update each composee strategy in turn.
updateState(Ball)
- Method in class ballworld.model.strategy.
StraightStrategy
No-op.
updateState(Ball)
- Method in class ballworld.model.strategy.
SwitcherStrategy
Delegates to the decoree strategy as the context's strategy.
updateState(Ball)
- Method in class ballworld.model.strategy.
WanderStrategy
Add random values to both the x and y components of the velocity of hte context ball.
UprightImagePaintStrategy
- Class in
ballworld.model.paint
An image painting strategy that adds behavior to the paintCfg process that keeps the image upright no matter which way it is going.
UprightImagePaintStrategy(String, double)
- Constructor for class ballworld.model.paint.
UprightImagePaintStrategy
Constructor for an image painting strategy
UprightShapePaintStrategy
- Class in
ballworld.model.paint
Class that adds a paintCfg override that keeps the shape upright no matter which direction it is going.
UprightShapePaintStrategy(Shape)
- Constructor for class ballworld.model.paint.
UprightShapePaintStrategy
Constructor that takes a Shape, generates its own affine transform.
UprightShapePaintStrategy(AffineTransform, Shape)
- Constructor for class ballworld.model.paint.
UprightShapePaintStrategy
Constructor that takes both a Shape and an affine transform
util
- package util
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
L
M
N
P
R
S
U
V
W
_