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

R

rand - Variable in class ballworld.model.BallModel
Randomizer utility object, used for random values for new balls
rand - Variable in class ballworld.model.strategy.BreathingStrategy
Randomizer utility for setting the sinusoid.
rand - Variable in class ballworld.model.strategy.ColorStrategy
Randomizer utility for generating random colors.
rand - Variable in class ballworld.model.strategy.DrunkenStrategy
Randomizer utility used to randomly select one of the possible strategies.
rand - Variable in class ballworld.model.strategy.WanderStrategy
Randomizer utility for obtaining random values to change the velocity
randomBounds(Rectangle, Dimension) - Method in interface util.IRandomizer
Generates a randomly located and sized rectangle
randomBounds(Rectangle, Dimension) - Method in class util.Randomizer
Generates a randomly located and sized rectangle
randomChoice(Object, Object, double) - Method in interface util.IRandomizer
Returns a random choice of one of two objects, x and y, where probX is the probability that x will be picked (0<=x<=1).
randomChoice(Object, Object, double) - Method in class util.Randomizer
Returns a random choice of one of two objects, x and y, where probX is the probability that x will be picked (0<=x<=1).
randomChoiceList(T...) - Method in interface util.IRandomizer
Return one of the vararg input parameters with equal probability.
randomChoiceList(T...) - Method in class util.Randomizer
Return one of the vararg input parameters with equal probability.
randomColor() - Method in interface util.IRandomizer
Generates a random color
randomColor() - Method in class util.Randomizer
Generates a random color
randomDim(Dimension) - Method in interface util.IRandomizer
Returns a random square Dimension, whose width is maxDim.width/2<=width<=maxDim.width
randomDim(Dimension) - Method in class util.Randomizer
Returns a random square Dimension, whose width is maxDim.width/2<=width<=maxDim.width
randomDouble(double, double) - Method in interface util.IRandomizer
Returns a random double greater than or equal to min and less than or equal to max.
randomDouble(double, double) - Method in class util.Randomizer
Returns a random double greater than or equal to min and less than or equal to max.
randomInt(int, int) - Method in interface util.IRandomizer
Returns a random integer greater than or equal to min and less than or equal to max.
randomInt(int, int) - Method in class util.Randomizer
Returns a random integer greater than or equal to min and less than or equal to max.
Randomizer - Class in util
Utility class that supplies class routines for generating various random values
Randomizer() - Constructor for class util.Randomizer
Private constructor for Singleton
randomLoc(Rectangle) - Method in interface util.IRandomizer
Generates a random location point subject to the constraint that 0<=X<=maxX and 0<=Y<=maxY.
randomLoc(Dimension) - Method in interface util.IRandomizer
Generates a random location point subject to the constraint that 0<=X<=maxX and 0<=Y<=maxY.
randomLoc(Rectangle) - Method in class util.Randomizer
Generates a random location point subject to the constraint that 0<=X<=maxX and 0<=Y<=maxY.
randomLoc(Dimension) - Method in class util.Randomizer
Generates a random location point subject to the constraint that 0<=X<=maxX and 0<=Y<=maxY.
randomVel(Rectangle) - Method in interface util.IRandomizer
Returns a random velocity (as a Point) subject to the constraint that the absolute value of the velocity (speed) is less than maxV.
randomVel(Rectangle) - Method in class util.Randomizer
Returns a random velocity (as a Point) subject to the constraint that the absolute value of the velocity (speed) is less than maxV.
RectanglePaintStrategy - Class in ballworld.model.paint.strategy
Concrete paint strategy that paints a rectangular shape scaled to the size of the ball.
RectanglePaintStrategy() - Constructor for class ballworld.model.paint.strategy.RectanglePaintStrategy
No-parameter constructor that instantiates the AffineTransform for internal use plus defines a prototype Rectangle of a width = 8/3 and height = 2/3 which is an average radius of 1.
RectanglePaintStrategy(AffineTransform, double, double, double, double) - Constructor for class ballworld.model.paint.strategy.RectanglePaintStrategy
Constructor that takes an external AffineTransform for internal use and a Rectangle centered at (x, y) with the given half-width and half-height (= x-radius and y-radius).
RectangleShapeFactory - Class in ballworld.model.paint.shape
Concrete IShapeFactory that instantiates Rectangle2d.Double shapes.
RectangleShapeFactory() - Constructor for class ballworld.model.paint.shape.RectangleShapeFactory
 
A B C D E F G I L M N P R S T U V W _ 
Skip navigation links