As discussed previously—see “ImageProducer”—image producers produce the bits of an image and pass them along to an image consumer. Every java.awt.Image has an associated image producer that reconstructs the image and produces the bits that constitute comprise the image whenever necessary.
The methods defined by the java.awt.image.ImageProducer interface are listed in Table 6-1.
|void addConsumer(ImageConsumer)||Registers an image consumer with the producer|
|boolean isConsumer(ImageConsumer)||Returns true if the image consumer has been registered with the producer, false otherwise|
|void removeConsumer(ImageConsumer)||Removes an image consumer from the list of consumers ...|