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

S

s1 - Variable in class ballworld.model.strategy.Change1Strategy
One of the composee strategies
s1 - Variable in class ballworld.model.strategy.DrunkenStrategy
One of the strategies to choose from
s2 - Variable in class ballworld.model.strategy.Change1Strategy
One of the composee strategies
s2 - Variable in class ballworld.model.strategy.DrunkenStrategy
One of the strategies to choose from
s3 - Variable in class ballworld.model.strategy.Change1Strategy
One of the composee strategies
s3 - Variable in class ballworld.model.strategy.DrunkenStrategy
One of the strategies to choose from
s4 - Variable in class ballworld.model.strategy.DrunkenStrategy
One of the strategies to choose from
scaleFactor - Variable in class ballworld.model.paint.ImagePaintStrategy
Ratio of the unit radius circle to the effective radius size of the image.
scaleFactor - Variable in class ballworld.model.paint.shape.PolygonFactory
Scale factor that scales the integer Point-defined Polygon to a unit size, which requires doubles.
serialVersionUID - Static variable in class ballworld.controller.BallControl
Used for unique serialization identification
serialVersionUID - Static variable in class ballworld.view.BallGUI
Unique identifier for serialization purposes
setColor(Color) - Method in class ballworld.model.Ball
Sets the color of this Ball to a given color.
setLocation(Point) - Method in class ballworld.model.Ball
Sets the center to a new location.
setPaintStrategy(IPaintStrategy) - Method in class ballworld.model.Ball
Sets the current strategy of this Ball to the given strategy
setRadius(int) - Method in class ballworld.model.Ball
Sets the radius of this Ball to a new radius.
setStrategy(IUpdateStrategy) - Method in class ballworld.model.strategy.SwitcherStrategy
Set the decoree strategy to a new value
setUpdateStrategy(IUpdateStrategy) - Method in class ballworld.model.Ball
Sets the current strategy of this Ball to the given strategy
setVelocity(Point) - Method in class ballworld.model.Ball
Sets the velocity of this Ball to a new velocity.
shape - Variable in class ballworld.model.paint.ShapePaintStrategy
The Shape to be painted
ShapePaintStrategy - Class in ballworld.model.paint
Concrete class that defines invariant painting behaviors to paint Shape objects for all its subclasses.
ShapePaintStrategy(Shape) - Constructor for class ballworld.model.paint.ShapePaintStrategy
Constructor that allocates a new AffineTransform for internal use.
ShapePaintStrategy(AffineTransform, Shape) - Constructor for class ballworld.model.paint.ShapePaintStrategy
Constructor that uses a supplied AffineTransform for internal use.
SharkImagePaintStrategy - Class in ballworld.model.paint.strategy
Paint strategy that paints a Black Tip Reef shark as its image.
SharkImagePaintStrategy() - Constructor for class ballworld.model.paint.strategy.SharkImagePaintStrategy
Constructor loads the shark image
sinA - Variable in class ballworld.model.strategy.CurveStrategy
Pre-calculated sine of the turning angle
SineMaker - Class in util
A utility class that can be used to create smoothly varying sinusoidal numerical data.
SineMaker(double, double, double) - Constructor for class util.SineMaker
The constructor takes several values to control the object's behavior.
Singleton - Static variable in class ballworld.model.paint.shape.EllipseShapeFactory
Singleton pattern
Singleton - Static variable in class ballworld.model.paint.shape.RectangleShapeFactory
Singleton pattern
Singleton - Static variable in class util.NoOpLambda
This is the class field that gives access to the one instance of this class
Singleton - Static variable in class util.Randomizer
Singleton design pattern
sm - Variable in class ballworld.model.strategy.BreathingStrategy
Sinusoid generator, randomly initialized.
SoccerImagePaintStrategy - Class in ballworld.model.paint.strategy
Paint strategy that paints a FIFA soccer ball as its image
SoccerImagePaintStrategy() - Constructor for class ballworld.model.paint.strategy.SoccerImagePaintStrategy
Constructor that loads the soccer ball image
SquarePaintStrategy - Class in ballworld.model.paint.strategy
Paint strategy that paints a filled square with the Ball's radius.
SquarePaintStrategy() - Constructor for class ballworld.model.paint.strategy.SquarePaintStrategy
No parameter constructor for the class
start() - Method in class ballworld.controller.BallControl
Start the entire system by starting the model and the view.
start() - Method in class ballworld.model.BallModel
Start the model, in particular, start the timer.
start() - Method in class ballworld.view.BallGUI
Start the GUI up.
StraightStrategy - Class in ballworld.model.strategy
Simple no-op strategy, which, alone, will make the ball go in a straight line.
StraightStrategy() - Constructor for class ballworld.model.strategy.StraightStrategy
 
SwimFishPaintStrategy - Class in ballworld.model.paint.strategy
Subclass of AnimatePaintStrategy that alternates between a Fish1PaintStrategy and a Fish2PaintStrategy.
SwimFishPaintStrategy() - Constructor for class ballworld.model.paint.strategy.SwimFishPaintStrategy
No-parameter constructor that instantiates an AffineTransform for internal use.
SwimFishPaintStrategy(AffineTransform) - Constructor for class ballworld.model.paint.strategy.SwimFishPaintStrategy
Constructor that takes an external AffineTransform for internal use.
SwitcherStrategy - Class in ballworld.model.strategy
Decorator design pattern strategy that provides an indirection layer and encapsulation over another strategy, enabling it to be switched without disturbing the context ball.
SwitcherStrategy() - Constructor for class ballworld.model.strategy.SwitcherStrategy
Constructor for the strategy.
switchStrategy(TStrategyDropListItem) - Method in interface ballworld.view.IModelControlAdapter
Switch the switcher strategy's decoree to the strategy denoted by the given item
switchSwitcherStrategy(IUpdateStrategy) - Method in class ballworld.model.BallModel
Change the switcher strategy's decoree to the supplied strategy
A B C D E F G I L M N P R S T U V W _ 
Skip navigation links