Class BatikSVGImage

  • All Implemented Interfaces:
    com.openhtmltopdf.extend.SVGDrawer.SVGImage

    public class BatikSVGImage
    extends Object
    implements com.openhtmltopdf.extend.SVGDrawer.SVGImage
    • Constructor Detail

      • BatikSVGImage

        public BatikSVGImage​(Element svgElement,
                             double cssWidth,
                             double cssHeight,
                             double cssMaxWidth,
                             double cssMaxHeight,
                             double dotsPerPixel)
    • Method Detail

      • getIntrinsicWidth

        public int getIntrinsicWidth()
        Specified by:
        getIntrinsicWidth in interface com.openhtmltopdf.extend.SVGDrawer.SVGImage
      • getIntrinsicHeight

        public int getIntrinsicHeight()
        Specified by:
        getIntrinsicHeight in interface com.openhtmltopdf.extend.SVGDrawer.SVGImage
      • parseDimensions

        public Point parseDimensions​(Element e)
      • drawSVG

        public void drawSVG​(com.openhtmltopdf.extend.OutputDevice outputDevice,
                            com.openhtmltopdf.render.RenderingContext ctx,
                            double x,
                            double y)
        Specified by:
        drawSVG in interface com.openhtmltopdf.extend.SVGDrawer.SVGImage