Class SVGPlugin

    • Method Detail

      • init

        public void init​(XWikiContext context)
        Description copied from interface: XWikiPluginInterface
        Global initialization, called when the platform is started and the plugin list is initialized.
        Specified by:
        init in interface XWikiPluginInterface
        Overrides:
        init in class XWikiDefaultPlugin
        Parameters:
        context - the current context, should not be stored since it will become mostly unreliable once the initial request is terminated
      • getSVGImage

        public byte[] getSVGImage​(String content,
                                  int height,
                                  int width)
                           throws IOException,
                                  org.apache.batik.apps.rasterizer.SVGConverterException
        Throws:
        IOException
        org.apache.batik.apps.rasterizer.SVGConverterException
      • getSVGImage

        public byte[] getSVGImage​(String content,
                                  String extension,
                                  int height,
                                  int width)
                           throws IOException,
                                  org.apache.batik.apps.rasterizer.SVGConverterException
        Throws:
        IOException
        org.apache.batik.apps.rasterizer.SVGConverterException
      • getSVGImage

        public byte[] getSVGImage​(int hashCode,
                                  String content,
                                  String extension,
                                  int height,
                                  int width)
                           throws IOException,
                                  org.apache.batik.apps.rasterizer.SVGConverterException
        Throws:
        IOException
        org.apache.batik.apps.rasterizer.SVGConverterException
      • expandSources

        protected String[] expandSources​(Vector sources)
      • writeSVGImage

        public String writeSVGImage​(String content,
                                    int height,
                                    int width)
                             throws IOException,
                                    org.apache.batik.apps.rasterizer.SVGConverterException
        Throws:
        IOException
        org.apache.batik.apps.rasterizer.SVGConverterException
      • writeSVGImage

        public String writeSVGImage​(String content,
                                    String extension,
                                    int height,
                                    int width)
                             throws IOException,
                                    org.apache.batik.apps.rasterizer.SVGConverterException
        Throws:
        IOException
        org.apache.batik.apps.rasterizer.SVGConverterException
      • outputSVGImage

        public void outputSVGImage​(String content,
                                   int height,
                                   int width,
                                   XWikiContext context)
                            throws IOException,
                                   org.apache.batik.apps.rasterizer.SVGConverterException
        Throws:
        IOException
        org.apache.batik.apps.rasterizer.SVGConverterException
      • outputSVGImage

        public void outputSVGImage​(String content,
                                   String extension,
                                   int height,
                                   int width,
                                   XWikiContext context)
                            throws IOException,
                                   org.apache.batik.apps.rasterizer.SVGConverterException
        Throws:
        IOException
        org.apache.batik.apps.rasterizer.SVGConverterException
      • getTempFile

        public File getTempFile​(String filename)
      • getTempFile

        public File getTempFile​(int hashcode,
                                String extension)
      • getSVGImageURL

        public String getSVGImageURL​(String content,
                                     int height,
                                     int width,
                                     XWikiContext context)
                              throws IOException,
                                     org.apache.batik.apps.rasterizer.SVGConverterException
        Throws:
        IOException
        org.apache.batik.apps.rasterizer.SVGConverterException