B C D G M P S T U W

B

Ball - Class in <Unnamed>
Defines a circular ball(implements interface circle) that has a name, color, mass, velocity, radius, x, and y coordinates.
Ball() - Constructor for class Ball
 
Ball(String, Color, double, double, double, double, double, double) - Constructor for class Ball
Creates a ball.
Ball2 - Class in <Unnamed>
Defines a circular ball(implements interface circle) that has a name, color, mass, velocity, radius, x, and y coordinates.
Ball2() - Constructor for class Ball2
 
Ball2(String, Color, double, double, double, double, double, double) - Constructor for class Ball2
Creates a ball.
Block - Class in <Unnamed>
Creates a stationary object "Wall," which is a polygon, and implements interface Polygon.
Block() - Constructor for class Block
initializes Block as a rectangle with all coordinates at (0,0)
Block(String, Color, int[], int[], int) - Constructor for class Block
Creates a polygonal block.
bounce(Ball) - Method in class Ball
 
bounce(StationaryObject) - Method in class Ball
 
bounce(Ball2) - Method in class Ball2
 
bounce(StationaryObject) - Method in class Ball2
 
BoxedBallsObject - Class in <Unnamed>
Ancestor class for all program BoxedBalls objects.
BoxedBallsObject() - Constructor for class BoxedBallsObject
 
BoxedBallsObject(String, Color) - Constructor for class BoxedBallsObject
Constructs an abstract object with a color and name.

C

Circle - Interface in <Unnamed>
 

D

draw(Graphics) - Method in class Ball
Draws the ball onto the canvas at x coordinate - radius, and y coordinate - radius.
draw(Graphics) - Method in class Ball2
Draws the ball onto the canvas at x coordinate - radius, and y coordinate - radius.
draw(Graphics) - Method in class Block
Draws the block onto Graphics object canvas.
draw(Graphics) - Method in interface DrawableFigure
draws object on Graphics canvas
draw(Graphics) - Method in class Wall
Draws the wall onto Graphics object canvas
DrawableFigure - Interface in <Unnamed>
 

G

getCollidingBallObject() - Method in class Ball
 
getCollidingBallObject() - Method in class Ball2
 
getCollidingStationaryObject() - Method in class Ball
 
getCollidingStationaryObject() - Method in class Ball2
 
getCollisionBallAnswer() - Method in class Ball
 
getCollisionBallAnswer() - Method in class Ball2
 
getCollisionWallAnswer() - Method in class Ball
 
getCollisionWallAnswer() - Method in class Ball2
 
getColor() - Method in class BoxedBallsObject
 
getColor() - Method in class MoveableObject
method getColor() overwrides getColor in BoxedBallsObject.
getColor() - Method in class StationaryObject
 
getMass() - Method in class MoveableObject
 
getMass() - Method in class StationaryObject
 
getName() - Method in class BoxedBallsObject
 
getRadius() - Method in class Ball
 
getRadius() - Method in class Ball2
 
getXCoordinate() - Method in class Ball
 
getXCoordinate() - Method in class Ball2
 
getXCoordinates() - Method in class Block
 
getXCoordinates() - Method in class Wall
 
getXVelocity() - Method in class MoveableObject
 
getXVelocity() - Method in class StationaryObject
 
getYCoordinate() - Method in class Ball
 
getYCoordinate() - Method in class Ball2
 
getYCoordinates() - Method in class Block
 
getYCoordinates() - Method in class Wall
 
getYVelocity() - Method in class MoveableObject
 
getYVelocity() - Method in class StationaryObject
 

M

MoveableObject - Class in <Unnamed>
Parent class for all moveable objects.
MoveableObject() - Constructor for class MoveableObject
 
MoveableObject(String, Color, double, double, double) - Constructor for class MoveableObject
creates a moveable object

P

Polygon - Interface in <Unnamed>
 

S

setCollidingBallObject(Ball) - Method in class Ball
 
setCollidingBallObject(Ball2) - Method in class Ball2
 
setCollidingStationaryObject(StationaryObject) - Method in class Ball
 
setCollidingStationaryObject(StationaryObject) - Method in class Ball2
 
setColor(Color) - Method in class BoxedBallsObject
 
setCoordinates(double, double, double) - Method in class Ball
 
setCoordinates(double, double) - Method in class Ball
 
setCoordinates(double, double, double) - Method in class Ball2
 
setCoordinates(double, double) - Method in class Ball2
 
setCoordinates(int[], int[], int) - Method in class Block
 
setCoordinates(double, double, double) - Method in interface Circle
sets coordinates of circle
setCoordinates(double, double) - Method in interface Circle
 
setCoordinates(int[], int[], int) - Method in interface Polygon
sets coordinates of polygon
setCoordinates(int[], int[], int) - Method in class Wall
 
setMass(double) - Method in class MoveableObject
 
setName(String) - Method in class BoxedBallsObject
 
setRadius(double) - Method in class Ball
 
setRadius(double) - Method in class Ball2
 
setRadius(double) - Method in interface Circle
 
setVelocity(double, double) - Method in class MoveableObject
 
setWillCollideWithBallThisTimeStep(boolean) - Method in class Ball
 
setWillCollideWithBallThisTimeStep(boolean) - Method in class Ball2
 
setWillCollideWithWallThisTimeStep(boolean) - Method in class Ball
 
setWillCollideWithWallThisTimeStep(boolean) - Method in class Ball2
 
STATIONARY_OBJECT_MASS - Static variable in class StationaryObject
1.0/0.0 produces infinity
STATIONARY_OBJECT_VELOCITY - Static variable in class StationaryObject
 
StationaryObject - Class in <Unnamed>
Parent class for all stationary objects.
StationaryObject() - Constructor for class StationaryObject
 
StationaryObject(String, Color) - Constructor for class StationaryObject
 

T

timeToCollision(Ball) - Method in class Ball
 
timeToCollision(Ball2) - Method in class Ball2
 

U

updatePosition(double) - Method in class Ball
 
updatePosition(double) - Method in class Ball2
 

W

Wall - Class in <Unnamed>
Creates a stationary object "Wall," which is a polygon, and implements interface Polygon.
Wall() - Constructor for class Wall
initializes Wall as a rectangle with all coordinates at (0,0)
Wall(String, Color, int[], int[], int) - Constructor for class Wall
Creates a polygonal wall.

B C D G M P S T U W