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

aTimer
ballDispatcher
component

BallAnimator
(int, JComponent)

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

aTimer
Timer aTimer
ballDispatcher
Dispatcher ballDispatcher
component
JComponent component

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

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