com.xpn.xwiki.plugin.svg
Class SVGPluginApi

java.lang.Object
  extended by com.xpn.xwiki.api.Api
      extended by com.xpn.xwiki.plugin.svg.SVGPluginApi

public class SVGPluginApi
extends Api


Field Summary
private  SVGPlugin plugin
           
 
Fields inherited from class com.xpn.xwiki.api.Api
context
 
Constructor Summary
SVGPluginApi(SVGPlugin plugin, XWikiContext context)
           
 
Method Summary
 void flushCache()
           
 SVGPlugin getPlugin()
           
 byte[] getSVGImage(java.lang.String content, int height, int width)
           
 byte[] getSVGImage(java.lang.String content, java.lang.String extension, int height, int width)
           
 java.lang.String getSVGImageURL(java.lang.String content, int height, int width)
           
 void outputSVGImage(java.lang.String content, int height, int width)
           
 void outputSVGImage(java.lang.String content, java.lang.String extension, int height, int width)
           
 void setPlugin(SVGPlugin plugin)
           
 java.lang.String writeSVGImage(java.lang.String content, int height, int width)
           
 java.lang.String writeSVGImage(java.lang.String content, java.lang.String extension, int height, int width)
           
 
Methods inherited from class com.xpn.xwiki.api.Api
checkProgrammingRights, hasAccessLevel, hasAdminRights, hasProgrammingRights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plugin

private SVGPlugin plugin
Constructor Detail

SVGPluginApi

public SVGPluginApi(SVGPlugin plugin,
                    XWikiContext context)
Method Detail

getPlugin

public SVGPlugin getPlugin()

setPlugin

public void setPlugin(SVGPlugin plugin)

getSVGImage

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

getSVGImage

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

getSVGImageURL

public java.lang.String getSVGImageURL(java.lang.String content,
                                       int height,
                                       int width)
                                throws java.io.IOException,
                                       org.apache.batik.apps.rasterizer.SVGConverterException
Throws:
java.io.IOException
org.apache.batik.apps.rasterizer.SVGConverterException

writeSVGImage

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

writeSVGImage

public java.lang.String writeSVGImage(java.lang.String content,
                                      java.lang.String extension,
                                      int height,
                                      int width)
                               throws java.io.IOException,
                                      org.apache.batik.apps.rasterizer.SVGConverterException
Throws:
java.io.IOException
org.apache.batik.apps.rasterizer.SVGConverterException

outputSVGImage

public void outputSVGImage(java.lang.String content,
                           int height,
                           int width)
                    throws java.io.IOException,
                           org.apache.batik.apps.rasterizer.SVGConverterException
Throws:
java.io.IOException
org.apache.batik.apps.rasterizer.SVGConverterException

outputSVGImage

public void outputSVGImage(java.lang.String content,
                           java.lang.String extension,
                           int height,
                           int width)
                    throws java.io.IOException,
                           org.apache.batik.apps.rasterizer.SVGConverterException
Throws:
java.io.IOException
org.apache.batik.apps.rasterizer.SVGConverterException

flushCache

public void flushCache()


Copyright 2003 Ludovic Dubost