org.jfree.report.modules.gui.base
Class ExportPluginFactory
java.lang.Object
|
+--org.jfree.report.modules.gui.base.ExportPluginFactory
- public final class ExportPluginFactory
- extends java.lang.Object
An export plug-in factory. This factory is used to collect all available export plugins
and to make them avaiable to the preview components.
- Author:
- Thomas Morgner.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
getInstance
public static ExportPluginFactory getInstance()
- Returns the singleton instance of the export plugin factory.
- Returns:
- the factory instance
registerPlugin
public void registerPlugin(ExportPluginSelector pluginSelector)
- Registers the given plugin in this factory.
- Parameters:
plugin - the implementing class of the export pluginpreference - the sort order in the menuenableKey - the enable key of the export plugin to trigger the visiblity
createPlugIn
protected ExportPlugin createPlugIn(PreviewProxy proxy,
java.lang.Class plugin)
- Loads and instatiaties an export plug-in.
- Parameters:
proxy - the preview proxy.plugin - the class of the export plugin.- Returns:
- The plug-in.
createExportPlugIns
public java.util.ArrayList createExportPlugIns(PreviewProxy proxy,
org.jfree.util.Configuration config,
WorkerPool worker)
- Creates a list containing all available export plugins.
- Parameters:
proxy - the preview proxy.config - the report configuration.worker - the woker that should be used to execute the exports, or null, if all
tasks should be executed synchronous.- Returns:
- The list of export plugins.