public class Graphics2DImagePainterImpl extends Object implements org.apache.xmlgraphics.java2d.Graphics2DImagePainter
Modifier and Type | Field and Description |
---|---|
protected org.apache.batik.bridge.BridgeContext |
ctx
the Batik bridge context
|
protected Dimension |
imageSize
the intrinsic size of the image
|
Constructor and Description |
---|
Graphics2DImagePainterImpl(org.apache.batik.gvt.GraphicsNode root,
org.apache.batik.bridge.BridgeContext ctx,
Dimension imageSize)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
Dimension |
getImageSize() |
void |
paint(Graphics2D g2d,
Rectangle2D area) |
protected final org.apache.batik.bridge.BridgeContext ctx
protected final Dimension imageSize
public Graphics2DImagePainterImpl(org.apache.batik.gvt.GraphicsNode root, org.apache.batik.bridge.BridgeContext ctx, Dimension imageSize)
root
- the graphics node rootctx
- the bridge contextimageSize
- the image sizepublic Dimension getImageSize()
getImageSize
in interface org.apache.xmlgraphics.java2d.Graphics2DImagePainter
public void paint(Graphics2D g2d, Rectangle2D area)
paint
in interface org.apache.xmlgraphics.java2d.Graphics2DImagePainter
Copyright © 2025 Apache Software Foundation. All rights reserved.