IT. Expert System.

Java Standard Edition (SE)

RenderableImageProducer


java.awt.image.renderable

Class RenderableImageProducer

  • All Implemented Interfaces:
    ImageProducer, Runnable


    public class RenderableImageProducer
    extends Object
    implements ImageProducer, 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 Detail

      • RenderableImageProducer

        public RenderableImageProducer(RenderableImage rdblImage,
                                       RenderContext rc)
        Constructs a new RenderableImageProducer from a RenderableImage and a RenderContext.
        Parameters:
        rdblImage - the RenderableImage to be rendered.
        rc - the RenderContext to use for producing the pixels.
    • Method Detail

      • setRenderContext

        public void setRenderContext(RenderContext rc)
        Sets a new RenderContext to use for the next startProduction() call.
        Parameters:
        rc - the new RenderContext.
      • isConsumer

        public boolean isConsumer(ImageConsumer ic)
        Determine if an ImageConsumer is on the list of consumers currently interested in data for this image.
        Specified by:
        isConsumer in interface ImageProducer
        Parameters:
        ic - the ImageConsumer to be checked.
        Returns:
        true if the ImageConsumer is on the list; false otherwise.
      • removeConsumer

        public void removeConsumer(ImageConsumer ic)
        Remove an ImageConsumer from the list of consumers interested in data for this image.
        Specified by:
        removeConsumer in interface ImageProducer
        Parameters:
        ic - the ImageConsumer to be removed.
      • run

        public void run()
        The runnable method for this class. This will produce an image using the current RenderableImage and RenderContext and send it to all the ImageConsumer currently registered with this class.
        Specified by:
        run in interface Runnable
        See Also:
        Thread.run()


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1528 / . Delta: 0.03134 с