Class DynamicRenderer

  • All Implemented Interfaces:
    ImageRenderer, Renderer

    public class DynamicRenderer
    extends StaticRenderer
    Simple implementation of the Renderer that supports dynamic updates.
    Version:
    $Id: DynamicRenderer.java 1804130 2017-08-04 14:41:11Z ssteiner $
    • Constructor Detail

      • DynamicRenderer

        public DynamicRenderer()
        Constructs a new dynamic renderer with the specified buffer image.
      • DynamicRenderer

        public DynamicRenderer​(java.awt.RenderingHints rh,
                               java.awt.geom.AffineTransform at)
    • Method Detail

      • flush

        public void flush​(java.util.Collection areas)
        Flush a list of rectangles of cached image data.
        Specified by:
        flush in interface ImageRenderer
        Overrides:
        flush in class StaticRenderer
      • updateWorkingBuffers

        protected void updateWorkingBuffers()
        Description copied from class: StaticRenderer
        Internal method used to synchronize local state in response to various set methods.
        Overrides:
        updateWorkingBuffers in class StaticRenderer
      • repaint

        public void repaint​(RectListManager devRLM)
        Repaints the associated GVT tree under the list of areas. If double buffered is true and this method completes cleanly it will set the result of the repaint as the image returned by getOffscreen otherwise the old image will still be returned. If double buffered is false it is possible some effects of the failed rendering will be visible in the image returned by getOffscreen.
        Specified by:
        repaint in interface Renderer
        Overrides:
        repaint in class StaticRenderer
        Parameters:
        devRLM - regions to be repainted, in the current user space coordinate system.