public class DynamicRenderer extends StaticRenderer
currentBaseRaster, currentOffScreen, currentRaster, defaultRenderingHints, isDoubleBuffered, lastCache, lastCR, offScreenHeight, offScreenWidth, renderingHints, rootCR, rootFilter, rootGN, usr2dev, workingBaseRaster, workingOffScreen, workingRaster
Constructor and Description |
---|
DynamicRenderer()
Constructs a new dynamic renderer with the specified buffer image.
|
DynamicRenderer(java.awt.RenderingHints rh,
java.awt.geom.AffineTransform at) |
Modifier and Type | Method and Description |
---|---|
void |
flush(java.util.Collection 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(RectListManager devRLM)
Repaints the associated GVT tree under the list of
areas . |
protected CachableRed |
setupCache(CachableRed img) |
protected void |
updateWorkingBuffers()
Internal method used to synchronize local state in response to
various set methods.
|
clearOffScreen, dispose, flush, getOffScreen, getRenderingHints, getTransform, getTree, isDoubleBuffered, renderGNR, repaint, setDoubleBuffered, setRenderingHints, setTransform, setTree, updateOffScreen
public DynamicRenderer()
public DynamicRenderer(java.awt.RenderingHints rh, java.awt.geom.AffineTransform at)
protected CachableRed setupCache(CachableRed img)
setupCache
in class StaticRenderer
public void flush(java.awt.Rectangle r)
StaticRenderer
flush
in interface ImageRenderer
flush
in class StaticRenderer
public void flush(java.util.Collection areas)
flush
in interface ImageRenderer
flush
in class StaticRenderer
protected void updateWorkingBuffers()
StaticRenderer
updateWorkingBuffers
in class StaticRenderer
public void repaint(RectListManager devRLM)
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.repaint
in interface Renderer
repaint
in class StaticRenderer
devRLM
- regions to be repainted, in the current
user space coordinate system.Copyright © 2022 Apache Software Foundation. All Rights Reserved.