Class BallAnimator


public class BallAnimator
extends Object
implements ActionListener
This class encapsulates the animation process for all the instantiated ABalls.


Variable Index

 o aTimer
 o ballDispatcher
 o component

Constructor Index

 o BallAnimator (int, JComponent)

Method Index

 o actionPerformed (ActionEvent)
 o addBall (Ball)
 o deleteBalls ()
 o paint (Graphics)

Variables

 o aTimer
Timer aTimer
 o ballDispatcher
Dispatcher ballDispatcher
 o component
JComponent component

Constructors

 o BallAnimator
public  BallAnimator(int refresh, JComponent component)
Parameters:
refresh -
frame -

Methods

 o paint
public void paint(Graphics g)
Parameters:
g -
 o addBall
public void addBall(Ball aBall)
Parameters:
aBall -
 o actionPerformed
public void actionPerformed(ActionEvent e)
 o deleteBalls
public void deleteBalls()