Class Graphics2DImagePainterImpl
java.lang.Object
org.apache.fop.image.loader.batik.Graphics2DImagePainterImpl
- All Implemented Interfaces:
org.apache.xmlgraphics.java2d.Graphics2DImagePainter
public class Graphics2DImagePainterImpl
extends Object
implements org.apache.xmlgraphics.java2d.Graphics2DImagePainter
A graphics 2D image painter implementation for painting SVG images using Batik.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGraphics2DImagePainterImpl
(org.apache.batik.gvt.GraphicsNode root, org.apache.batik.bridge.BridgeContext ctx, Dimension imageSize) Main constructor -
Method Summary
-
Field Details
-
ctx
protected final org.apache.batik.bridge.BridgeContext ctxthe Batik bridge context -
imageSize
the intrinsic size of the image
-
-
Constructor Details
-
Graphics2DImagePainterImpl
public Graphics2DImagePainterImpl(org.apache.batik.gvt.GraphicsNode root, org.apache.batik.bridge.BridgeContext ctx, Dimension imageSize) Main constructor- Parameters:
root
- the graphics node rootctx
- the bridge contextimageSize
- the image size
-
-
Method Details
-
getImageSize
- Specified by:
getImageSize
in interfaceorg.apache.xmlgraphics.java2d.Graphics2DImagePainter
-
paint
- Specified by:
paint
in interfaceorg.apache.xmlgraphics.java2d.Graphics2DImagePainter
-