ImageProducer
, Runnable
public class RenderableImageProducer extends Object implements ImageProducer, Runnable
Constructor | Description |
---|---|
RenderableImageProducer |
Constructs a new RenderableImageProducer from a RenderableImage and a RenderContext. |
Modifier and Type | Method | Description |
---|---|---|
void |
addConsumer |
Adds an ImageConsumer to the list of consumers interested in data for this image. |
boolean |
isConsumer |
Determine if an ImageConsumer is on the list of consumers currently interested in data for this image. |
void |
removeConsumer |
Remove an ImageConsumer from the list of consumers interested in data for this image. |
void |
requestTopDownLeftRightResend |
Requests that a given ImageConsumer have the image data delivered one more time in top-down, left-right order. |
void |
run() |
The runnable method for this class. |
void |
setRenderContext |
Sets a new RenderContext to use for the next startProduction() call. |
void |
startProduction |
Adds an ImageConsumer to the list of consumers interested in data for this image, and immediately starts delivery of the image data through the ImageConsumer interface. |
public RenderableImageProducer(RenderableImage rdblImage, RenderContext rc)
rdblImage
- the RenderableImage to be rendered.rc
- the RenderContext to use for producing the pixels.public void setRenderContext(RenderContext rc)
rc
- the new RenderContext.public void addConsumer(ImageConsumer ic)
addConsumer
in interface ImageProducer
ic
- an ImageConsumer to be added to the interest list.public boolean isConsumer(ImageConsumer ic)
isConsumer
in interface ImageProducer
ic
- the ImageConsumer to be checked.public void removeConsumer(ImageConsumer ic)
removeConsumer
in interface ImageProducer
ic
- the ImageConsumer to be removed.public void startProduction(ImageConsumer ic)
startProduction
in interface ImageProducer
ic
- the ImageConsumer to be added to the list of consumers.public void requestTopDownLeftRightResend(ImageConsumer ic)
requestTopDownLeftRightResend
in interface ImageProducer
ic
- the ImageConsumer requesting the resend.public void run()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/image/renderable/RenderableImageProducer.html