A B C D E F G H I K M N O P R S T U V X Y

A

actionPerformed(ActionEvent) - Method in class PoolTableApplet.ButtonHandler
 
addBall(Ball) - Method in class Duct
Add one ball to the balls in the duct
addVector(Vector) - Method in class Vector
Add two vectors
adjustmentValueChanged(AdjustmentEvent) - Method in class PoolTableApplet
 
animationThread - Variable in class Animator
 
animator - Variable in class PoolTableApplet
 
Animator - class Animator.
 
Animator(Component) - Constructor for class Animator
 

B

ball - Variable in class Duct
 
ball - Variable in class PoolTableCanvas
 
Ball - class Ball.
 
Ball() - Constructor for class Ball
default constructor
Ball(Vector, Vector, Color) - Constructor for class Ball
Constructor with three parameters viz.
ballColor - Variable in class PoolTableCanvas
 
ballFlag - Variable in class PoolTableCanvas
 
ballRadius - Variable in class PoolTableCanvas
 
bounceOffWall(Rectangle) - Method in class Ball
Set the rebounding velocity of the ball after collision with the table edge

C

clickedPoint - Variable in class PoolTableCanvas
 
collideWithBall(Ball) - Method in class Ball
Set the rebounding velocity of the ball after collision with another ball
comp - Variable in class Animator
 
comp - Variable in class DoubleBufferHandler
 
controlPanel - Variable in class PoolTableApplet
 
createImage(int, int) - Method in interface DoubleBufferedComponent
 

D

d - Variable in class DoubleBufferHandler
 
d - Variable in class PoolTableCanvas
 
dbHandler - Variable in class PoolTableCanvas
 
decelerate(Time) - Method in class Ball
Decelerate the ball
delay - Variable in class Animator
 
detectBallCollision(Ball) - Method in class Ball
Detect the time of collision with any other ball
detectTableCollision(Rectangle) - Method in class Ball
Detect the time of collision with any of the table edges
dotProduct(Vector) - Method in class Vector
Get dot product of two vectors
DoubleBufferedComponent - interface DoubleBufferedComponent.
 
DoubleBufferHandler - class DoubleBufferHandler.
 
DoubleBufferHandler(DoubleBufferedComponent) - Constructor for class DoubleBufferHandler
 
Duct - class Duct.
Copyright (c) Amish Parkh November 2001 Duct.java: The Duct class includes the private variables for representing the balls within the rectangular shaped duct.
Duct(Rectangle, int, int) - Constructor for class Duct
Constructor with three parameters
ductStopTime(Duct) - Method in class Ball
Get the time after which the pocketed ball comes to a stop in the duct
dx - Variable in class PoolTableCanvas
 
dy - Variable in class PoolTableCanvas
 

E

edgeThickness - Variable in class PoolTableCanvas
 
endOfDuct(Duct) - Method in class Ball
Update stationary balls in the duct

F

fallIntoHole(Hole) - Method in class Ball
Check whether the ball has fallen into the hole

G

getAccel() - Method in class Ball
Get the acceleration of the ball
getBall(int) - Method in class Duct
Get specific ball
getBall(int) - Method in class PoolTableCanvas
 
getBallCount() - Method in class Duct
Get ball count in duct
getBallFlag() - Method in class PoolTableCanvas
 
getClickedPoint() - Method in class PoolTableCanvas
 
getColor() - Method in class Ball
Get the color of the ball
getDelay() - Method in class Animator
 
getHeight() - Method in class Rectangle
get height of rectangle
getMagnitude() - Method in class Vector
Get the magnitude
getMoving() - Method in class PoolTableCanvas
 
getNormal() - Method in class Vector
Get the normal vector
getOldClick() - Method in class PoolTableCanvas
 
getPosition() - Method in class Ball
Get the position vector
getRadius() - Method in class Ball
Get the radius of the ball
getRadius() - Method in class Hole
get radius of hole
getRect() - Method in class Duct
Get Rectangle
getSize() - Method in interface DoubleBufferedComponent
 
getStaticBallCount() - Method in class Duct
Set Stationary duct ball count
getTime() - Method in class Time
get current time
getVelocity() - Method in class Ball
Get the velocity of the ball
getWidth() - Method in class Rectangle
get width of rectangle
getX() - Method in class Hole
get x coordinate of hole
getX() - Method in class Rectangle
get x coordinate of rectangle
getX() - Method in class Vector
Get x component of the vector
getY() - Method in class Hole
get y coordinate of hole
getY() - Method in class Rectangle
get y coordinate of rectangle
getY() - Method in class Vector
Get y component of the vector

H

hole - Variable in class PoolTableCanvas
 
Hole - class Hole.
Copyright (c) Amish Parkh November 2001 Hole.java: The Hole class includes the protected variables for representing position of the center of the hole, ,the radius of the hole.
Hole(double, double, double) - Constructor for class Hole
Constructor with three arguements, x coordinate, y coordinate and radius of hole
holeRadius - Variable in class PoolTableCanvas
 

I

im - Variable in class DoubleBufferHandler
 
increaseBalls() - Method in class Duct
Increment the number of balls in the duct by one
init() - Method in class PoolTableApplet
initialize the applet call initCanvas from PoolTableCanvas check if the game is over
initCanvas() - Method in class PoolTableCanvas
 
inputscrollbar - Variable in class PoolTableApplet
 
interior - Variable in class PoolTableCanvas
 
isAlive() - Method in class Ball
Check whether the ball is on the table
isEqual(Vector) - Method in class Vector
Check if the two vectors are equal in magnitude and return result
isMoving() - Method in class Ball
Check whether the ball is in motion

K

kill() - Method in class Ball
Remove the ball from the table

M

moving - Variable in class PoolTableCanvas
 
multiply(double) - Method in class Vector
Multiply two vectors

N

nballs - Variable in class PoolTableCanvas
 
nholes - Variable in class PoolTableCanvas
 

O

offScreen - Variable in class DoubleBufferHandler
 
oldClick - Variable in class PoolTableCanvas
 
output - Variable in class PoolTableCanvas
 

P

paint(Graphics) - Method in class PoolTableCanvas
method paint calls update to paint the canvas on applet
paintFrame(Graphics) - Method in interface DoubleBufferedComponent
 
paintFrame(Graphics) - Method in class PoolTableCanvas
method paintFrame actually draws the canvas on applet with various components like pockets(holes) and sets up balls with white cue ball
playButton - Variable in class PoolTableApplet
 
PoolTableApplet - class PoolTableApplet.
 
PoolTableApplet.ButtonHandler - class PoolTableApplet.ButtonHandler.
Internal class that handles button clicked events
PoolTableApplet.ButtonHandler(PoolTableApplet) - Constructor for class PoolTableApplet.ButtonHandler
 
PoolTableApplet() - Constructor for class PoolTableApplet
 
PoolTableCanvas - class PoolTableCanvas.
 
PoolTableCanvas() - Constructor for class PoolTableCanvas
 
pushIntoDuct(Duct) - Method in class Ball
Push pocketed ball into duct

R

radius - Variable in class Hole
 
radius - Variable in class PoolTableCanvas
 
Rectangle - class Rectangle.
Copyright (c) Amish Parkh November 2001 Rectangle.java: The Rectangle class includes the private variable for representing the x, y coordinates and height and width of the green felt part of the table.
Rectangle() - Constructor for class Rectangle
default Constructor
Rectangle(double, double, double, double) - Constructor for class Rectangle
Constructor with four agruements, x coordinate, y coordinate, width and height of the rectangle.
rotateVector(double) - Method in class Vector
Rotate a vector by a given angle
run() - Method in class Animator
 

S

setAccel(double) - Method in class Ball
Set the acceleration of the ball
setBall(Ball, int) - Method in class Duct
Set specific ball
setBallFlag(boolean) - Method in class PoolTableCanvas
 
setColor(Color) - Method in class Ball
Set the color of the ball
setDelay(int) - Method in class Animator
 
setMoving(boolean) - Method in class PoolTableCanvas
 
setPosition(Vector) - Method in class Ball
Set the position vector
setRadius(double) - Method in class Hole
set radius of hole
setSize(Dimension) - Method in class DoubleBufferHandler
 
setStaticBallCount(int) - Method in class Duct
Set Stationary duct ball count
setTime(double) - Method in class Time
set current time
setVector(Vector) - Method in class Vector
Set the x and y components of the vector
setVelocity(Vector) - Method in class Ball
Set the velocity vector
setX(double) - Method in class Hole
set x coordinate of hole
setX(double) - Method in class Vector
Set x component of the vector
setY(double) - Method in class Hole
set y coordinate of hole
setY(double) - Method in class Vector
Set y component of the vector
start() - Method in class Animator
 
start() - Method in class PoolTableApplet
start the animator
stop() - Method in class Animator
 
stop() - Method in class PoolTableApplet
stop the animator
subtractVector(Vector) - Method in class Vector
Subtract two vectors

T

tablecanvas - Variable in class PoolTableApplet
 
tableHeight - Variable in class PoolTableCanvas
 
tableWidth - Variable in class PoolTableCanvas
 
Time - class Time.
Copyright (c) Amish Parkh November 2001 Time.java: The Time class includes the private variable for representing the time.
Time() - Constructor for class Time
default constructor
Time(double) - Constructor for class Time
constructor to initailize the time with t

U

unitVector() - Method in class Vector
Get the unit vector of the given vector
update(Graphics) - Method in class DoubleBufferHandler
 
update(Graphics) - Method in class PoolTableCanvas
method update updates the canvas
updateBalls() - Method in class PoolTableCanvas
updateBalls method updates the latest positions of the balls it uses methods like detectTableCollision,detectBallCollision, setPosition,kill,isLive,getPosition,ductStopTime,fallIntoHole, setVelocity,pushIntoDuct,bounceOffWall,collideWithBall,endOfDuct, decelerate from Ball class.

V

Vector - class Vector.
 
Vector() - Constructor for class Vector
Empty constructor
Vector(double, double) - Constructor for class Vector
Constructor with two parameters viz.
Vector(double, double, double, double) - Constructor for class Vector
Constructor with four parameters viz.

X

x - Variable in class Hole
 
x - Variable in class PoolTableCanvas
 

Y

y - Variable in class Hole
 
y - Variable in class PoolTableCanvas
 

A B C D E F G H I K M N O P R S T U V X Y