public class Graphics2DImagePainterImpl
extends java.lang.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 java.awt.Dimension |
imageSize
the intrinsic size of the image
|
| Constructor and Description |
|---|
Graphics2DImagePainterImpl(org.apache.batik.gvt.GraphicsNode root,
org.apache.batik.bridge.BridgeContext ctx,
java.awt.Dimension imageSize)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Dimension |
getImageSize() |
void |
paint(java.awt.Graphics2D g2d,
java.awt.geom.Rectangle2D area) |
protected final org.apache.batik.bridge.BridgeContext ctx
protected final java.awt.Dimension imageSize
public Graphics2DImagePainterImpl(org.apache.batik.gvt.GraphicsNode root,
org.apache.batik.bridge.BridgeContext ctx,
java.awt.Dimension imageSize)
root - the graphics node rootctx - the bridge contextimageSize - the image sizepublic java.awt.Dimension getImageSize()
getImageSize in interface org.apache.xmlgraphics.java2d.Graphics2DImagePainterpublic void paint(java.awt.Graphics2D g2d,
java.awt.geom.Rectangle2D area)
paint in interface org.apache.xmlgraphics.java2d.Graphics2DImagePainterCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.