|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
java.awt.image.renderable.RenderableImageProducer
, Runnable

public class RenderableImageProducer

, Runnable

An adapter class that implements ImageProducer to allow the asynchronous production of a RenderableImage. The size of the ImageConsumer is determined by the scale factor of the usr2dev transform in the RenderContext. If the RenderContext is null, the default rendering of the RenderableImage is used. This class implements an asynchronous production that produces the image in one thread at one resolution. This class may be subclassed to implement versions that will render the image using several threads. These threads could render either the same image at progressively better quality, or different sections of the image at a single resolution.
| Constructor Summary | |
|---|---|
RenderableImageProducer
Constructs a new RenderableImageProducer from a RenderableImage and a RenderContext. |
|
| Method Summary | |
|---|---|
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. |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| Constructor Detail |
|---|

public RenderableImageProducer(RenderableImage![]()
![]()
rdblImage, RenderContext
![]()
![]()
rc)
rdblImage - the RenderableImage to be rendered.rc - the RenderContext to use for producing the pixels.| Method Detail |
|---|

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()

|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||