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

U

update(Observable, Object) - Method in class ballworld.model.Ball
Run the given command.
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 the view.
update(Graphics) - Method in interface ballworld.view.IModelUpdateAdapter
Update the model, using the supplied Graphics object
updateState(Dispatcher) - Method in class ballworld.model.Ball
Update the state of the ball.
updateState(Ball, Dispatcher) - Method in interface ballworld.model.IUpdateStrategy
Abstract method to update the state of a ball
updateState(Ball, Dispatcher) - Method in class ballworld.model.strategy.BreathingStrategy
Set the context's radius to the next value in the sinusoid.
updateState(Ball, Dispatcher) - 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, Dispatcher) - Method in class ballworld.model.strategy.Change2Strategy
Do nothing unless the count has gone to zero, then change the context's strategy
updateState(Ball, Dispatcher) - Method in class ballworld.model.strategy.ColorStrategy
Set the context's color to a random color value.
updateState(Ball, Dispatcher) - Method in class ballworld.model.strategy.CurveStrategy
Rotate the context's velocity by the turning angle
updateState(Ball, Dispatcher) - 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, Dispatcher) - Method in class ballworld.model.strategy.MultiStrategy
Update each composee strategy in turn.
updateState(Ball, Dispatcher) - Method in class ballworld.model.strategy.StraightStrategy
No-op.
updateState(Ball, Dispatcher) - Method in class ballworld.model.strategy.SwitcherStrategy
Delegates to the decoree strategy as the context's strategy.
updateState(Ball, Dispatcher) - 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 a paintCfg override 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
A shape painting strategy 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
 
A B C D E F G I L M N P R S T U V W _ 
Skip navigation links