org.apache.batik.gvt.renderer

Interface ImageRenderer

public interface ImageRenderer extends Renderer

Interface for GVT Renderers that render into raster images.
Method Summary
voidclearOffScreen()
Tells renderer to clear current contents of offscreen buffer
voiddispose()
release resources associated with this object.
voidflush()
Flush any cached image data (preliminary interface).
voidflush(Rectangle r)
Flush a rectangle of cached image data (preliminary interface).
voidflush(Collection areas)
Flush a list of rectangles of cached image data (preliminary interface).
BufferedImagegetOffScreen()
Get the Current offscreen buffer used for rendering
RenderingHintsgetRenderingHints()
Returns the rendering hints this ImageRenderer is using for its rendering.
AffineTransformgetTransform()
Returns the transform from the current user space (as defined by the top node of the GVT tree) to the device space.
voidsetRenderingHints(RenderingHints rh)
Sets the specified rendering hints to be used for future renderings.
voidsetTransform(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.
voidupdateOffScreen(int width, int height)
Update the required size of the offscreen buffer.

Method Detail

clearOffScreen

public void clearOffScreen()
Tells renderer to clear current contents of offscreen buffer

dispose

public void dispose()
release resources associated with this object.

flush

public void flush()
Flush any cached image data (preliminary interface).

flush

public void flush(Rectangle r)
Flush a rectangle of cached image data (preliminary interface).

flush

public void flush(Collection areas)
Flush a list of rectangles of cached image data (preliminary interface). Each area are transformed via the usr2dev's renderer transform before the flush(Rectangle) is called.

getOffScreen

public BufferedImage getOffScreen()
Get the Current offscreen buffer used for rendering

getRenderingHints

public RenderingHints getRenderingHints()
Returns the rendering hints this ImageRenderer is using for its rendering.

Returns: the rendering hints being used

getTransform

public AffineTransform getTransform()
Returns the transform from the current user space (as defined by the top node of the GVT tree) to the device space.

setRenderingHints

public void setRenderingHints(RenderingHints rh)
Sets the specified rendering hints to be used for future renderings. This replaces current set of rendering hints.

Parameters: rh the rendering hints to use

setTransform

public 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.

Parameters: usr2dev the new user space to device space transform. If null, the identity transform will be set.

updateOffScreen

public void updateOffScreen(int width, int height)
Update the required size of the offscreen buffer.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.