Documentation of 'org.jplot2d.renderer.ImageRenderer' Java class
ImageRenderer
org.jplot2d.renderer

Class ImageRenderer

  • Direct Known Subclasses:
    AsyncImageRenderer, CallerRunImageRenderer, ImageExporter


    public abstract class ImageRenderer
    extends Renderer
    Since Graphics can draw image, It's possible to render all cacheable component individually, then assemble them together.

    The rendering steps:

    1. Rendering all modified cacheable components
    2. Assembling result of 1st step into a final result
    3. notify all registered RenderingFinishedListener
    A renderer maintains a cache for all cacheable components. The cache is a map, the key is uid of components, the value is components future. The environment must offer those values when calling a renderer
    1. all cacheable components and their uid in assembly order
    2. all uid of unmodified cacheable components
    • Constructor Detail

      • ImageRenderer

        public ImageRenderer(ImageFactory imageFactory,
                             java.util.concurrent.Executor executor)
    • Method Detail

      • render

        public void render(ComponentEx comp,
                           java.util.List<CacheableBlock> cacheBlockList)
        Description copied from class: Renderer
        Render the given plot. This method is protected by environment lock.
        Specified by:
        render in class Renderer
        Parameters:
        comp - the component to be rendered
        cacheBlockList - A list of CacheBlock in z-order, contains the top component, even if the component is uncacheable. The CacheBlock contains cacheable components that will be rendered.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.