com.ibm.tivoli.maximo.report.control.svgtools

Class SVGTools

  • java.lang.Object
    • com.ibm.tivoli.maximo.report.control.svgtools.SVGTools


  • public class SVGTools
    extends java.lang.Object
    Batik, in the WEB-INF lib area was causing an issue for BIRT. This moves the batik dependency to a "tool" area and then uses a custom classloader and reflection to interact with the SVG apis to create a PNG file from SVG.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SVGTools() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.awt.image.BufferedImage toPNG(java.lang.String svg)
      Given an SVG xml string, convert it to a PNG BufferedImage
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SVGTools

        public SVGTools()
    • Method Detail

      • toPNG

        public static java.awt.image.BufferedImage toPNG(java.lang.String svg)
                                                  throws java.lang.Exception
        Given an SVG xml string, convert it to a PNG BufferedImage
        Parameters:
        svg -
        Returns:
        Throws:
        java.lang.Exception