Package com.xpn.xwiki.plugin.charts
Class ChartingPlugin
- java.lang.Object
-
- com.xpn.xwiki.plugin.XWikiDefaultPlugin
-
- com.xpn.xwiki.plugin.charts.ChartingPlugin
-
- All Implemented Interfaces:
XWikiPluginInterface
public class ChartingPlugin extends XWikiDefaultPlugin implements XWikiPluginInterface
TODO: Document this- Version:
- $Id: 8f42639e4f578d8189062a6974bfa30c60cf9aa9 $
-
-
Constructor Summary
Constructors Constructor Description ChartingPlugin(String name, String className, XWikiContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Chart
generateChart(ChartParams params, XWikiContext context)
String
getName()
Api
getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
void
init(XWikiContext context)
void
outputFile(String filename, XWikiContext context)
byte[]
readFile(File ofile)
-
Methods inherited from class com.xpn.xwiki.plugin.XWikiDefaultPlugin
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, getLocalization, insidePREHandler, localizePlainOrKey, 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
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, insidePREHandler, outsidePREHandler, startRenderingHandler, virtualInit
-
-
-
-
Constructor Detail
-
ChartingPlugin
public ChartingPlugin(String name, String className, XWikiContext context)
-
-
Method Detail
-
init
public void init(XWikiContext context)
- Specified by:
init
in interfaceXWikiPluginInterface
- Overrides:
init
in classXWikiDefaultPlugin
-
getName
public String getName()
- Specified by:
getName
in interfaceXWikiPluginInterface
- Overrides:
getName
in classXWikiDefaultPlugin
-
generateChart
public Chart generateChart(ChartParams params, XWikiContext context) throws GenerateException
- Throws:
GenerateException
-
outputFile
public void outputFile(String filename, XWikiContext context) throws IOException
- Throws:
IOException
-
readFile
public byte[] readFile(File ofile) throws IOException
- Throws:
IOException
-
getPluginApi
public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
- Specified by:
getPluginApi
in interfaceXWikiPluginInterface
- Overrides:
getPluginApi
in classXWikiDefaultPlugin
-
-