org.apache.batik.gvt.renderer

Class DynamicRenderer

public class DynamicRenderer extends StaticRenderer

Simple implementation of the Renderer that supports dynamic updates.
Constructor Summary
DynamicRenderer()
Constructs a new dynamic renderer with the specified buffer image.
DynamicRenderer(RenderingHints rh, AffineTransform at)
Method Summary
voidflush(Rectangle r)
voidflush(Collection areas)
Flush a list of rectangles of cached image data.
voidrepaint(RectListManager devRLM)
Repaints the associated GVT tree under the list of areas.
protected CachableRedsetupCache(CachableRed img)
protected voidupdateWorkingBuffers()

Constructor Detail

DynamicRenderer

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

DynamicRenderer

public DynamicRenderer(RenderingHints rh, AffineTransform at)

Method Detail

flush

public void flush(Rectangle r)

flush

public void flush(Collection areas)
Flush a list of rectangles of cached image data.

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.

Parameters: devRLM regions to be repainted, in the current user space coordinate system.

setupCache

protected CachableRed setupCache(CachableRed img)

updateWorkingBuffers

protected void updateWorkingBuffers()
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.