Class MathMLImage

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

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

      • MathMLImage

        public MathMLImage​(Element mathMlElement,
                           com.openhtmltopdf.render.Box box,
                           double cssWidth,
                           double cssHeight,
                           double cssMaxWidth,
                           double cssMaxHeight,
                           double dotsPerPixel,
                           List<String> fonts)
    • 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
      • 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