org.apache.batik.gvt.renderer
Class DynamicRenderer

java.lang.Object
  |
  +--org.apache.batik.gvt.renderer.StaticRenderer
        |
        +--org.apache.batik.gvt.renderer.DynamicRenderer
All Implemented Interfaces:
ImageRenderer, Renderer

public class DynamicRenderer
extends StaticRenderer

Simple implementation of the Renderer that supports dynamic updates.


Fields inherited from class org.apache.batik.gvt.renderer.StaticRenderer
currentBaseRaster, currentOffScreen, currentRaster, defaultRenderingHints, isDoubleBuffered, lastCache, lastCR, offScreenHeight, offScreenWidth, renderingHints, rootCR, rootFilter, rootGN, usr2dev, workingBaseRaster, workingOffScreen, workingRaster
 
Constructor Summary
DynamicRenderer()
          Constructs a new dynamic renderer with the specified buffer image.
DynamicRenderer(java.awt.RenderingHints rh, java.awt.geom.AffineTransform at)
           
 
Method Summary
 void flush(java.util.List areas)
          Flush a list of rectangles of cached image data.
 void flush(java.awt.Rectangle r)
          Flush a rectangle of cached image data.
 void repaint(java.util.List areas)
          Repaints the associated GVT tree under the list of areas.
protected  CachableRed setupCache(CachableRed img)
           
 
Methods inherited from class org.apache.batik.gvt.renderer.StaticRenderer
clearOffScreen, dispose, flush, getOffScreen, getRenderingHints, getTransform, getTree, isDoubleBuffered, renderGNR, repaint, setDoubleBuffered, setRenderingHints, setTransform, setTree, updateOffScreen, updateWorkingBuffers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

setupCache

protected CachableRed setupCache(CachableRed img)
Overrides:
setupCache in class StaticRenderer

flush

public void flush(java.awt.Rectangle r)
Description copied from class: StaticRenderer
Flush a rectangle of cached image data.
Overrides:
flush in class StaticRenderer

flush

public void flush(java.util.List areas)
Flush a list of rectangles of cached image data.
Overrides:
flush in class StaticRenderer

repaint

public void repaint(java.util.List areas)
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.
Overrides:
repaint in class StaticRenderer
Parameters:
areas - a List of regions to be repainted, in the current user space coordinate system.


Copyright © 2002 Apache Software Foundation. All Rights Reserved.