public class RenderableImageProducer extends Object implements ImageProducer, Runnable
Constructor and Description |
---|
RenderableImageProducer(RenderableImage rdblImage,
RenderContext rc)
Constructs a new RenderableImageProducer from a RenderableImage
and a RenderContext.
|
Modifier and Type | Method and Description |
---|---|
void |
addConsumer(ImageConsumer ic)
Adds an ImageConsumer to the list of consumers interested in
data for this image.
|
boolean |
isConsumer(ImageConsumer ic)
Determine if an ImageConsumer is on the list of consumers
currently interested in data for this image.
|
void |
removeConsumer(ImageConsumer ic)
Remove an ImageConsumer from the list of consumers interested in
data for this image.
|
void |
requestTopDownLeftRightResend(ImageConsumer ic)
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(RenderContext rc)
Sets a new RenderContext to use for the next startProduction() call.
|
void |
startProduction(ImageConsumer ic)
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.ImageProducer.startProduction(java.awt.image.ImageConsumer)
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.ImageProducer.addConsumer(java.awt.image.ImageConsumer)
public void requestTopDownLeftRightResend(ImageConsumer ic)
requestTopDownLeftRightResend
in interface ImageProducer
ic
- the ImageConsumer requesting the resend.ImageConsumer.setHints(int)
public void run()
run
in interface Runnable
Thread.run()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2024, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.