O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The ImageProducer Interface

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.

Table 6-1. java.awt.image.ImageProducer Methods
Method Intent
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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required