First off, just to dispel any doubt, this class and its subclasses have nothing to do with GUI "frames" such as java.awt.Frame. We merely use the term in its very common sense of a still picture in an animation sequence. It's hoped that the restricted context will prevent any confusion.
An instance of this class is used in conjunction with a Gif89Encoder object to represent and encode a single static image and its associated "control" data. A Gif89Frame doesn't know or care whether it is encoding one of the many animation frames in a GIF movie, or the single bitmap in a "normal" GIF. (FYI, this design mirrors the encoded GIF structure.)
Since Gif89Frame is an abstract class we don't instantiate it directly, but instead create instances of its concrete subclasses, IndexGif89Frame and DirectGif89Frame. From the API standpoint, these subclasses differ only in the sort of data their instances are constructed from. Most folks will probably work with DirectGif89Frame, since it can be constructed from a java.awt.Image object, but the lower-level IndexGif89Frame class offers advantages in specialized circumstances. (Of course, in routine situations you might not explicitly instantiate any frames at all, instead letting Gif89Encoder's convenience methods do the honors.)
As far as the public API is concerned, objects in the Gif89Frame hierarchy interact with a Gif89Encoder only via the latter's methods for adding and querying frames. (As a side note, you should know that while Gif89Encoder objects are permanently modified by the addition of Gif89Frames, the reverse is NOT true. That is, even though the ultimate encoding of a Gif89Frame may be affected by the context its parent encoder object provides, it retains its original condition and can be reused in a different context.)
The core pixel-encoding code in this class was essentially lifted from Jef Poskanzer's well-known Acme GifEncoder, so please see the readme containing his notice.
@version 0.90 beta (15-Jul-2000)
@author J. M. G. Elliott (tep@jmge.net)
@see Gif89Encoder
@see DirectGif89Frame
@see IndexGif89Frame