org.ow2.clif.analyze.lib.graph
Class ExportEngineImpl

java.lang.Object
  extended by org.ow2.clif.analyze.lib.graph.ExportEngineImpl
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, ExportControl

public class ExportEngineImpl
extends java.lang.Object
implements org.objectweb.fractal.api.control.BindingController, ExportControl

The Class ExportEngineImpl.

Author:
Jordan BRUNIER, Gregory CALONNIER, Olivier LIU

Field Summary
 
Fields inherited from interface org.ow2.clif.analyze.api.graph.ExportControl
EXPORT_CONTROL
 
Constructor Summary
ExportEngineImpl()
          Instantiates a new export engine impl.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 boolean exportToHTML(java.lang.String fileName, int chartId, java.lang.String imageFormat, java.lang.String comment, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Double>> statistics, java.lang.String title)
          Export to HTML.
 boolean exportToText(java.lang.String fileName, java.util.Map<java.lang.Integer,java.util.List<StatisticDataImpl>> statisticMap, java.util.Map<java.lang.String,java.lang.String> commentMap, java.util.Map<java.lang.Integer,org.jfree.chart.JFreeChart> jFreeChartMap, java.lang.String imageType)
          Export to text
 boolean exportToXML(java.lang.String fileName, int chartId, java.lang.String imageFormat, java.lang.String comment, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Double>> statistics, java.lang.String title)
          Export to XML.
 boolean exportToXML(java.lang.String fileName, java.util.Map<java.lang.Integer,java.util.List<StatisticDataImpl>> statisticMap, java.util.Map<java.lang.String,java.lang.String> commentMap, java.util.Map<java.lang.Integer,org.jfree.chart.JFreeChart> jFreeChartMap, java.lang.String imageType, java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> pageIdAndDatasetIds, java.util.Map<java.lang.Integer,ChartData> chartDataList, java.util.Map<java.lang.Integer,DatasetOptions> datasetIdAndGraphOptions)
          Export to XML
 ExportEngineImpl getInstance()
          Gets the single instance of ExportEngineImpl.
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 boolean saveRoutineAsXML(java.lang.String fileName, java.util.Map<java.lang.Integer,java.util.List<StatisticDataImpl>> statisticMap, java.util.Map<java.lang.String,java.lang.String> commentMap, java.util.Map<java.lang.Integer,org.jfree.chart.JFreeChart> jFreeChartMap, java.lang.String imageType, java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> pageIdAndDatasetIds, java.util.Map<java.lang.Integer,ChartData> chartDataList, java.util.Map<java.lang.Integer,DatasetOptions> datasetIdAndGraphOptions)
          Save Routine As XML
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportEngineImpl

public ExportEngineImpl()
Instantiates a new export engine impl.

Method Detail

getInstance

public ExportEngineImpl getInstance()
Gets the single instance of ExportEngineImpl.

Returns:
single instance of ExportEngineImpl

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
            throws org.objectweb.fractal.api.NoSuchInterfaceException,
                   org.objectweb.fractal.api.control.IllegalBindingException,
                   org.objectweb.fractal.api.control.IllegalLifeCycleException
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
                          throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

unbindFc

public void unbindFc(java.lang.String clientItfName)
              throws org.objectweb.fractal.api.NoSuchInterfaceException,
                     org.objectweb.fractal.api.control.IllegalBindingException,
                     org.objectweb.fractal.api.control.IllegalLifeCycleException
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException

exportToHTML

public boolean exportToHTML(java.lang.String fileName,
                            int chartId,
                            java.lang.String imageFormat,
                            java.lang.String comment,
                            java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Double>> statistics,
                            java.lang.String title)
Description copied from interface: ExportControl
Export to HTML.

Specified by:
exportToHTML in interface ExportControl
Parameters:
fileName - the file name
chartId - the chart id
imageFormat - the image format
comment - the comment
statistics - the statistics
title - the title
Returns:
true, if successful

exportToText

public boolean exportToText(java.lang.String fileName,
                            java.util.Map<java.lang.Integer,java.util.List<StatisticDataImpl>> statisticMap,
                            java.util.Map<java.lang.String,java.lang.String> commentMap,
                            java.util.Map<java.lang.Integer,org.jfree.chart.JFreeChart> jFreeChartMap,
                            java.lang.String imageType)
Description copied from interface: ExportControl
Export to text

Specified by:
exportToText in interface ExportControl
Returns:
true if successful

exportToXML

public boolean exportToXML(java.lang.String fileName,
                           int chartId,
                           java.lang.String imageFormat,
                           java.lang.String comment,
                           java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Double>> statistics,
                           java.lang.String title)
Description copied from interface: ExportControl
Export to XML.

Specified by:
exportToXML in interface ExportControl
Parameters:
fileName - the file name
chartId - the chart id
imageFormat - the image format
comment - the comment
statistics - the statistics
title - the title
Returns:
true, if successful

exportToXML

public boolean exportToXML(java.lang.String fileName,
                           java.util.Map<java.lang.Integer,java.util.List<StatisticDataImpl>> statisticMap,
                           java.util.Map<java.lang.String,java.lang.String> commentMap,
                           java.util.Map<java.lang.Integer,org.jfree.chart.JFreeChart> jFreeChartMap,
                           java.lang.String imageType,
                           java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> pageIdAndDatasetIds,
                           java.util.Map<java.lang.Integer,ChartData> chartDataList,
                           java.util.Map<java.lang.Integer,DatasetOptions> datasetIdAndGraphOptions)
Description copied from interface: ExportControl
Export to XML

Specified by:
exportToXML in interface ExportControl

saveRoutineAsXML

public boolean saveRoutineAsXML(java.lang.String fileName,
                                java.util.Map<java.lang.Integer,java.util.List<StatisticDataImpl>> statisticMap,
                                java.util.Map<java.lang.String,java.lang.String> commentMap,
                                java.util.Map<java.lang.Integer,org.jfree.chart.JFreeChart> jFreeChartMap,
                                java.lang.String imageType,
                                java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> pageIdAndDatasetIds,
                                java.util.Map<java.lang.Integer,ChartData> chartDataList,
                                java.util.Map<java.lang.Integer,DatasetOptions> datasetIdAndGraphOptions)
Save Routine As XML

Specified by:
saveRoutineAsXML in interface ExportControl