Playfield and DoubleBufferedContainer
Of course, a sprite is useless without a DoubleBufferedContainer upon which to frolic, so let's turn our attention to the Playfield class and discuss the animation functionality it provides.
A Playfield is a double buffered container that adds animation capabilities to the double buffering functionality implemented by the DoubleBufferedContainer class. The class diagram for the Playfield class is shown in Figure 25-3.
Figure 25-3. Playfield Class Diagram
Playfield extends DoubleBufferedContainer. We've already discussed the implementation of DoubleBufferedContainer in “Double Buffering” , so we won't ...