org.apache.batik.gvt.renderer
public class StaticRenderer extends Object implements ImageRenderer
Field Summary | |
---|---|
protected WritableRaster | currentBaseRaster
Offscreen image where the Renderer does its rendering |
protected BufferedImage | currentOffScreen |
protected WritableRaster | currentRaster |
protected static RenderingHints | defaultRenderingHints |
protected boolean | isDoubleBuffered
Flag for double buffering. |
protected SoftReference | lastCache |
protected SoftReference | lastCR |
protected int | offScreenHeight |
protected int | offScreenWidth |
protected RenderingHints | renderingHints
Passed to the GVT tree to describe the rendering environment |
protected CachableRed | rootCR |
protected Filter | rootFilter |
protected GraphicsNode | rootGN
Tree this Renderer paints. |
protected AffineTransform | usr2dev |
protected WritableRaster | workingBaseRaster |
protected BufferedImage | workingOffScreen |
protected WritableRaster | workingRaster |
Constructor Summary | |
---|---|
StaticRenderer(RenderingHints rh, AffineTransform at) | |
StaticRenderer()
Creates a new StaticRenderer object. |
Method Summary | |
---|---|
void | clearOffScreen()
Sets up and clears the current offscreen buffer.
|
void | dispose()
Disposes all resources of this renderer. |
void | flush()
Flush any cached image data. |
void | flush(Collection areas)
Flush a list of rectangles of cached image data. |
void | flush(Rectangle r)
Flush a rectangle of cached image data. |
BufferedImage | getOffScreen()
Returns the current offscreen image.
|
RenderingHints | getRenderingHints() |
AffineTransform | getTransform()
Returns the transform from the current user space (as defined
by the top node of the GVT tree) to the device space. |
GraphicsNode | getTree() |
boolean | isDoubleBuffered()
Returns true if the Renderer is currently doubleBuffering is
rendering requests. |
protected CachableRed | renderGNR() |
void | repaint(Shape area)
Repaints the associated GVT tree under area.
|
void | repaint(RectListManager areas)
Repaints the associated GVT tree under the list of areas.
|
void | setDoubleBuffered(boolean isDoubleBuffered)
Turns on/off double buffering in renderer. |
void | setRenderingHints(RenderingHints rh) |
void | setTransform(AffineTransform usr2dev)
Sets the transform from the current user space (as defined by
the top node of the GVT tree, to the associated device space.
|
void | setTree(GraphicsNode rootGN)
This associates the given GVT Tree with this renderer.
|
protected CachableRed | setupCache(CachableRed img) |
void | updateOffScreen(int width, int height)
Update the size of the image to be returned by getOffScreen.
|
protected void | updateWorkingBuffers()
Internal method used to synchronize local state in response to
various set methods. |
Parameters: rh Hints for rendering. at Starting user to device coordinate system transform.
Returns: the RenderingHints which the Renderer is using for its rendering
Returns: the GVT tree associated with this renderer
Parameters: area region to be repainted, in the current user space coordinate system.
Parameters: areas a List of regions to be repainted, in the current user space coordinate system.
Parameters: isDoubleBuffered the new value for double buffering
Parameters: rh Set of rendering hints to use for future renderings
Parameters: usr2dev the new user space to device space transform. If null, the identity transform will be set.