Animator.java
package com.bozoid.cis370.hw07;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
This interface describes an object which knows how to render
itself, one frame at a time, on a panel. The panel is expected
to call the oneFrame() method periodically to have the Animator
render a frame. The Animator is responsible for storing all
persistent data necessary to draw each frame.
*/
interface Animator
{
/**
Animate one frame of an animation.
@param comp The component into which the animation is drawn.
The only operation the animation should execute against
<code>comp</code> is the <code>setBackground()</code> method.
@param g The graphics context in which to draw.
*/
void oneFrame(Component comp,Graphics g);
}