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.

Playfield

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 ...

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.