The FilteredImageSource class acts as glue to put an original ImageProducer and ImageFilter together to create a new image. As the ImageProducer for the new image, FilteredImageSource is responsible for registering image consumers for the new image.
public class java.awt.image.FilteredImageSource extends java.lang.Object implements java.awt.image.ImageProducer { // Constructors public FilteredImageSource (ImageProducer original, ImageFilter filter); // Instance Methods public synchronized void addConsumer (ImageConsumer ic); public synchronized boolean isConsumer (ImageConsumer ic); public synchronized void removeConsumer (ImageConsumer ic); public void requestTopDownLeftRightResend (ImageConsumer ic); public void startProduction (ImageConsumer ic); }
An ImageProducer that generates the image to be filtered.
The ImageFilter to use to process image data delivered by original.
Constructs a FilteredImageSource object to filter an image generated by an ImageProducer.
ImageConsumer interested in receiving the new image.
ImageProducer.addConsumer(ImageConsumer)
Registers an ImageConsumer as interested in Image information.
ImageConsumer to check.
true if ImageConsumer is registered with this ImageProducer, false otherwise.
ImageProducer.isConsumer(ImageConsumer)
ImageConsumer to remove.
ImageProducer.removeConsumer(ImageConsumer)
Removes an ImageConsumer from the registered consumers for this ImageProducer.
ImageConsumer to communicate with.
ImageProducer.requestTopDownLeftRightResend()
Requests the retransmission of the Image data in top-down, left-to-right order.
ImageConsumer to communicate with.
ImageProducer.startProduction(ImageConsumer)
Registers ImageConsumer as interested in Image information and tells ImageProducer to start creating the filtered Image data immediately.
ImageFilter, ImageConsumer, ImageProducer, Object
This HTML Help has been published using the chm2web software. |