com.xpn.xwiki.plugin.graphviz
Class GraphVizPlugin
java.lang.Object
com.xpn.xwiki.plugin.XWikiDefaultPlugin
com.xpn.xwiki.plugin.graphviz.GraphVizPlugin
- All Implemented Interfaces:
- XWikiPluginInterface
- public class GraphVizPlugin
- extends XWikiDefaultPlugin
- implements XWikiPluginInterface
Field Summary |
private java.lang.String |
dotPath
|
private static org.apache.commons.logging.Log |
mLogger
|
private java.lang.String |
neatoPath
|
private java.io.File |
tempDir
|
Method Summary |
void |
flushCache()
|
byte[] |
getDotImage(int hashCode,
java.lang.String content,
java.lang.String extension,
boolean dot)
|
byte[] |
getDotImage(java.lang.String content,
boolean dot)
|
byte[] |
getDotImage(java.lang.String content,
java.lang.String extension,
boolean dot)
|
java.lang.String |
getDotImageURL(java.lang.String content,
boolean dot,
XWikiContext context)
|
java.lang.String |
getName()
|
Api |
getPluginApi(XWikiPluginInterface plugin,
XWikiContext context)
|
java.io.File |
getTempFile(int hashcode,
java.lang.String extension,
boolean dot)
|
java.io.File |
getTempFile(java.lang.String filename)
|
void |
init(XWikiContext context)
|
void |
outputDotImage(java.lang.String content,
boolean dot,
XWikiContext context)
|
void |
outputDotImage(java.lang.String content,
java.lang.String extension,
boolean dot,
XWikiContext context)
|
void |
outputDotImageFromFile(java.lang.String filename,
XWikiContext context)
|
byte[] |
readDotImage(java.io.File ofile)
|
java.lang.String |
writeDotImage(java.lang.String content,
boolean dot)
|
java.lang.String |
writeDotImage(java.lang.String content,
java.lang.String extension,
boolean dot)
|
Methods inherited from class com.xpn.xwiki.plugin.XWikiDefaultPlugin |
beginRendering, commonTagsHandler, endRendering, endRenderingHandler, getClassName, insidePREHandler, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.xpn.xwiki.plugin.XWikiPluginInterface |
beginRendering, commonTagsHandler, endRendering, endRenderingHandler, getClassName, insidePREHandler, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit |
mLogger
private static org.apache.commons.logging.Log mLogger
tempDir
private java.io.File tempDir
dotPath
private java.lang.String dotPath
neatoPath
private java.lang.String neatoPath
GraphVizPlugin
public GraphVizPlugin(java.lang.String name,
java.lang.String className,
XWikiContext context)
getName
public java.lang.String getName()
- Specified by:
getName
in interface XWikiPluginInterface
- Overrides:
getName
in class XWikiDefaultPlugin
getPluginApi
public Api getPluginApi(XWikiPluginInterface plugin,
XWikiContext context)
- Specified by:
getPluginApi
in interface XWikiPluginInterface
- Overrides:
getPluginApi
in class XWikiDefaultPlugin
flushCache
public void flushCache()
- Specified by:
flushCache
in interface XWikiPluginInterface
- Overrides:
flushCache
in class XWikiDefaultPlugin
init
public void init(XWikiContext context)
- Specified by:
init
in interface XWikiPluginInterface
- Overrides:
init
in class XWikiDefaultPlugin
getDotImage
public byte[] getDotImage(java.lang.String content,
boolean dot)
throws java.io.IOException
- Throws:
java.io.IOException
getDotImage
public byte[] getDotImage(java.lang.String content,
java.lang.String extension,
boolean dot)
throws java.io.IOException
- Throws:
java.io.IOException
getDotImage
public byte[] getDotImage(int hashCode,
java.lang.String content,
java.lang.String extension,
boolean dot)
throws java.io.IOException
- Throws:
java.io.IOException
readDotImage
public byte[] readDotImage(java.io.File ofile)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
writeDotImage
public java.lang.String writeDotImage(java.lang.String content,
boolean dot)
throws java.io.IOException
- Throws:
java.io.IOException
writeDotImage
public java.lang.String writeDotImage(java.lang.String content,
java.lang.String extension,
boolean dot)
throws java.io.IOException
- Throws:
java.io.IOException
outputDotImage
public void outputDotImage(java.lang.String content,
boolean dot,
XWikiContext context)
throws java.io.IOException
- Throws:
java.io.IOException
outputDotImage
public void outputDotImage(java.lang.String content,
java.lang.String extension,
boolean dot,
XWikiContext context)
throws java.io.IOException
- Throws:
java.io.IOException
outputDotImageFromFile
public void outputDotImageFromFile(java.lang.String filename,
XWikiContext context)
throws java.io.IOException
- Throws:
java.io.IOException
getTempFile
public java.io.File getTempFile(java.lang.String filename)
getTempFile
public java.io.File getTempFile(int hashcode,
java.lang.String extension,
boolean dot)
getDotImageURL
public java.lang.String getDotImageURL(java.lang.String content,
boolean dot,
XWikiContext context)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright 2003 Ludovic Dubost