@Deprecated public class GraphVizPluginApi extends PluginApi<GraphVizPlugin>
See http://www.graphviz.org/doc/info/lang.html for the dot language specification. See http://www.graphviz.org/doc/info/output.html for the possible output formats
Constructor and Description |
---|
GraphVizPluginApi(GraphVizPlugin plugin,
XWikiContext context)
Deprecated.
Default plugin API constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
flushCache()
Deprecated.
Discard all generated output from the temporary file storage.
|
byte[] |
getDotImage(String content,
boolean dot)
Deprecated.
Executes GraphViz and return the content of the resulting image (PNG format).
|
byte[] |
getDotImage(String content,
String extension,
boolean dot)
Deprecated.
Executes GraphViz and return the content of the resulting image (PNG format).
|
String |
getDotImageURL(String content,
boolean dot)
Deprecated.
Executes GraphViz and returns the URL for the produced file, a PNG image.
|
GraphVizPlugin |
getPlugin()
Deprecated.
Return the inner plugin object, if the user has the required programming rights.
|
void |
outputDotImage(String content,
boolean dot)
Deprecated.
Executes GraphViz and writes the resulting image (PNG format) into the response.
|
void |
outputDotImage(String content,
String extension,
boolean dot)
Deprecated.
Executes GraphViz and writes the resulting image (in the requested format) into the response.
|
String |
writeDotImage(String content,
boolean dot)
Deprecated.
Executes GraphViz, writes the resulting image (PNG format) in a temporary file on disk, and returns the filename.
|
String |
writeDotImage(String content,
String extension,
boolean dot)
Deprecated.
Executes GraphViz, writes the resulting image (in the requested format) in a temporary file on disk, and returns
the filename.
|
getInternalPlugin, getProtectedPlugin, setPlugin
convert, convert, convert, convertAttachments, getXWikiContext, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
public GraphVizPluginApi(GraphVizPlugin plugin, XWikiContext context)
plugin
- the wrapped plugin instancecontext
- the current request contextpublic GraphVizPlugin getPlugin()
public byte[] getDotImage(String content, boolean dot) throws IOException
content
- the dot source codedot
- which engine to execute: dot
if true
, neato
if false
IOException
- if writing the input or output files to the disk failspublic byte[] getDotImage(String content, String extension, boolean dot) throws IOException
content
- the dot source codeextension
- the output file extensiondot
- which engine to execute: dot
if true
, neato
if false
IOException
- if writing the input or output files to the disk failspublic String getDotImageURL(String content, boolean dot) throws IOException
content
- the dot sourcedot
- which engine to execute: dot
if true
, neato
if false
IOException
- if writing the input or output files to the disk failspublic String writeDotImage(String content, boolean dot) throws IOException
content
- the dot source codedot
- which engine to execute: dot
if true
, neato
if false
IOException
- if writing the input or output files to the disk failspublic String writeDotImage(String content, String extension, boolean dot) throws IOException
content
- the dot source codeextension
- the output file extensiondot
- which engine to execute: dot
if true
, neato
if false
IOException
- if writing the input or output files to the disk failspublic void outputDotImage(String content, boolean dot) throws IOException
content
- the dot source codedot
- which engine to execute: dot
if true
, neato
if false
IOException
- if writing the input or output files to the disk fails, or if writing the response body failspublic void outputDotImage(String content, String extension, boolean dot) throws IOException
content
- the dot source codeextension
- the output file extensiondot
- which engine to execute: dot
if true
, neato
if false
IOException
- if writing the input or output files to the disk fails, or if writing the response body failspublic void flushCache()
Copyright © 2004–2017 XWiki. All rights reserved.