Class Java2DSVGReplacedElement
java.lang.Object
com.openhtmltopdf.swing.EmptyReplacedElement
com.openhtmltopdf.java2d.api.Java2DRendererBuilder.Graphics2DPaintingReplacedElement
com.openhtmltopdf.java2d.Java2DSVGReplacedElement
- All Implemented Interfaces:
ReplacedElement
public class Java2DSVGReplacedElement
extends Java2DRendererBuilder.Graphics2DPaintingReplacedElement
-
Field Summary
FieldsFields inherited from class Java2DRendererBuilder.Graphics2DPaintingReplacedElement
DOTS_PER_INCH -
Constructor Summary
ConstructorsConstructorDescriptionJava2DSVGReplacedElement(Element e, SVGDrawer svgImpl, int width, int height, Box box, CssContext c) -
Method Summary
Modifier and TypeMethodDescriptionintintvoidpaint(OutputDevice outputDevice, RenderingContext ctx, double x, double y, double width, double height) Methods inherited from class EmptyReplacedElement
detach, getBaseline, getLocation, hasBaseline, isRequiresInteractivePaint, setLocation
-
Field Details
-
_svgImage
-
-
Constructor Details
-
Java2DSVGReplacedElement
public Java2DSVGReplacedElement(Element e, SVGDrawer svgImpl, int width, int height, Box box, CssContext c)
-
-
Method Details
-
paint
public void paint(OutputDevice outputDevice, RenderingContext ctx, double x, double y, double width, double height) - Specified by:
paintin classJava2DRendererBuilder.Graphics2DPaintingReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidthin interfaceReplacedElement- Overrides:
getIntrinsicWidthin classEmptyReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeightin interfaceReplacedElement- Overrides:
getIntrinsicHeightin classEmptyReplacedElement
-