public class SVGPlugin extends XWikiDefaultPlugin implements XWikiPluginInterface
Constructor and Description |
---|
SVGPlugin(String name,
String className,
XWikiContext context) |
Modifier and Type | Method and Description |
---|---|
protected String[] |
expandSources(Vector sources) |
void |
flushCache()
Older equivalent of the
XWikiDefaultPlugin.flushCache(XWikiContext) method without a context provided. |
String |
getName()
The name which can be used for accessing this plugin from
XWiki.getPlugin(String, XWikiContext) . |
Api |
getPluginApi(XWikiPluginInterface plugin,
XWikiContext context)
Get a public scriptable API that can be used to call methods of the (privileged) plugin.
|
byte[] |
getSVGImage(int hashCode,
String content,
String extension,
int height,
int width) |
byte[] |
getSVGImage(String content,
int height,
int width) |
byte[] |
getSVGImage(String content,
String extension,
int height,
int width) |
String |
getSVGImageURL(String content,
int height,
int width,
XWikiContext context) |
File |
getTempFile(int hashcode,
String extension) |
File |
getTempFile(String filename) |
void |
init(XWikiContext context)
Global initialization, called when the platform is started and the plugin list is initialized.
|
void |
outputSVGImage(String content,
int height,
int width,
XWikiContext context) |
void |
outputSVGImage(String content,
String extension,
int height,
int width,
XWikiContext context) |
void |
outputSVGImageFromFile(String filename,
XWikiContext context) |
byte[] |
readSVGImage(File ofile) |
String |
writeSVGImage(String content,
int height,
int width) |
String |
writeSVGImage(String content,
String extension,
int height,
int width) |
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, getClassName, getLocalization, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, insidePREHandler, outsidePREHandler, startRenderingHandler, virtualInit
public SVGPlugin(String name, String className, XWikiContext context)
public String getName()
XWikiPluginInterface
XWiki.getPlugin(String, XWikiContext)
.getName
in interface XWikiPluginInterface
getName
in class XWikiDefaultPlugin
public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
XWikiPluginInterface
getPluginApi
in interface XWikiPluginInterface
getPluginApi
in class XWikiDefaultPlugin
plugin
- the plugin instance to wrapcontext
- the current request contextnull
if the plugin doesn't want to expose a public APIpublic void flushCache()
XWikiDefaultPlugin
XWikiDefaultPlugin.flushCache(XWikiContext)
method without a context provided.flushCache
in class XWikiDefaultPlugin
public void init(XWikiContext context)
XWikiPluginInterface
init
in interface XWikiPluginInterface
init
in class XWikiDefaultPlugin
context
- the current context, should not be stored since it will become mostly unreliable once the initial
request is terminatedpublic byte[] getSVGImage(String content, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
public byte[] getSVGImage(String content, String extension, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
public byte[] getSVGImage(int hashCode, String content, String extension, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
public byte[] readSVGImage(File ofile) throws IOException
IOException
public String writeSVGImage(String content, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
public String writeSVGImage(String content, String extension, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
public void outputSVGImage(String content, int height, int width, XWikiContext context) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
public void outputSVGImage(String content, String extension, int height, int width, XWikiContext context) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
public void outputSVGImageFromFile(String filename, XWikiContext context) throws IOException
IOException
public String getSVGImageURL(String content, int height, int width, XWikiContext context) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
Copyright © 2004–2022 XWiki. All rights reserved.