ImageProducer
Name
ImageProducer
Description
ImageProducer is an interface that provides the methods necessary for the production of images and the communication with classes that implement the ImageConsumer interface.
Interface Definition
public abstract interface java.awt.image.ImageProducer {
// Interface Methods public abstract void addConsumer (ImageConsumer ic);
public abstract boolean isConsumer (ImageConsumer ic);
public abstract void removeConsumer (ImageConsumer ic);
public abstract void requestTopDownLeftRightResend (ImageConsumer ic);
public abstract void startProduction (ImageConsumer ic);
}
Interface Methods
addConsumer
public abstract void addConsumer (ImageConsumer ic)
- Parameters
-
- ic
- An
ImageConsumerthat wants to receive image data.
- Description
- Registers an
ImageConsumeras interested in image information.
isConsumer
public abstract boolean isConsumer (ImageConsumer ic)
- Parameters
-
- ic
ImageConsumerto check.
- Returns
trueifImageConsumerhas registered with theImageProducer,falseotherwise.
removeConsumer
public abstract void removeConsumer (ImageConsumer ic)
- Parameters
-
- ic
ImageConsumerto remove.
- Description
- Removes an
ImageConsumerfrom registered consumers for thisImageProducer.
requestTopDownLeftRightResend
public abstract void requestTopDownLeftRightResend (ImageConsumer ic)
- Parameters
-
- ic
ImageConsumerto communicate with.
- Description
- Requests the retransmission of the image data in top-down, left-to-right order.
startProduction
public abstract void startProduction (ImageConsumer ic)
- Parameters
-
- ic
- ImageConsumer to communicate with.
- Description
- Registers
ImageConsumeras interested in image information and tellsImageProducerto start sending the image data immediately.
See Also
FilteredImageSource, Image, ImageConsumer, ImageFilter, MemoryImageSource, Object