Class SVGEmbedder


  • public class SVGEmbedder
    extends Embedder
    This Embedder creates an SVG format Graph using the SVGOutput class, and embeds it in the HTML using the <object> and/or <embed> tags. It handles rollovers in a similar way to the PNGEmbedder class.
    Since:
    2.4
    • Constructor Detail

      • SVGEmbedder

        public SVGEmbedder()
    • Method Detail

      • setBrowserSniff

        public void setBrowserSniff​(boolean sniff)
        Set whether to "sniff" the browser using JavaScript. The correct code to handle SVG documents cannot be created in a cross-browser fashion, so setting this flag will cause the browser to be identified with JavaScript on load and the tags modified then.
        Since:
        2.4.2
      • getSVGOutput

        public SVGOutput getSVGOutput()
        Return the SVGOutput created by this class