Class DynamicRenderer
java.lang.Object
org.apache.batik.gvt.renderer.StaticRenderer
org.apache.batik.gvt.renderer.DynamicRenderer
- All Implemented Interfaces:
ImageRenderer, Renderer
Simple implementation of the Renderer that supports dynamic updates.
-
Field Summary
Fields inherited from class StaticRenderer
currentBaseRaster, currentOffScreen, currentRaster, defaultRenderingHints, isDoubleBuffered, lastCache, lastCR, offScreenHeight, offScreenWidth, renderingHints, rootCR, rootFilter, rootGN, usr2dev, workingBaseRaster, workingOffScreen, workingRaster -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new dynamic renderer with the specified buffer image. -
Method Summary
Modifier and TypeMethodDescriptionvoidFlush a rectangle of cached image data.voidflush(Collection areas) Flush a list of rectangles of cached image data.voidrepaint(RectListManager devRLM) Repaints the associated GVT tree under the list ofareas.protected CachableRedsetupCache(CachableRed img) protected voidInternal method used to synchronize local state in response to various set methods.Methods inherited from class StaticRenderer
clearOffScreen, dispose, flush, getOffScreen, getRenderingHints, getTransform, getTree, isDoubleBuffered, renderGNR, repaint, setDoubleBuffered, setRenderingHints, setTransform, setTree, updateOffScreen
-
Constructor Details
-
DynamicRenderer
public DynamicRenderer()Constructs a new dynamic renderer with the specified buffer image. -
DynamicRenderer
-
-
Method Details
-
setupCache
- Overrides:
setupCachein classStaticRenderer
-
flush
Description copied from class:StaticRendererFlush a rectangle of cached image data.- Specified by:
flushin interfaceImageRenderer- Overrides:
flushin classStaticRenderer
-
flush
Flush a list of rectangles of cached image data.- Specified by:
flushin interfaceImageRenderer- Overrides:
flushin classStaticRenderer
-
updateWorkingBuffers
protected void updateWorkingBuffers()Description copied from class:StaticRendererInternal method used to synchronize local state in response to various set methods.- Overrides:
updateWorkingBuffersin classStaticRenderer
-
repaint
Repaints the associated GVT tree under the list ofareas. 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:
repaintin interfaceRenderer- Overrides:
repaintin classStaticRenderer- Parameters:
devRLM- regions to be repainted, in the current user space coordinate system.
-