org.pentaho.platform.plugin.action.chartbeans
Interface IChartBeansGenerator

All Known Implementing Classes:
DefaultChartBeansGenerator

public interface IChartBeansGenerator


Method Summary
 String buildEmptyOpenFlashChartHtmlFragment(String msg)
           
 String buildOpenFlashChartHtmlFragment(String openFlashChartJson, String swfUrl, String chartWidth, String chartHeight)
           
 String createChartAsHtml(IPentahoSession userSession, Map<String,Object> parameterMap, String serializedChartDataDefinition, String serializedChartModel, int chartWidth, int chartHeight)
          Convenience method that returns a complete HTML document containing the chart.
 String getFlashObjectFragment()
           
 String getFlashScriptFragment()
           
 String getHtmlTemplate()
           
 String mergeJFreeChartHtmlTemplate(File imageFile, String imageMap, String imageMapName, int chartWidth, int chartHeight, String contextPath)
           
 String mergeOpenFlashChartHtmlTemplate(String openFlashChartJson, String swfUrl)
           
 String mergeStaticImageHtmlTemplate(String imageUrl)
           
 

Method Detail

createChartAsHtml

String createChartAsHtml(IPentahoSession userSession,
                         Map<String,Object> parameterMap,
                         String serializedChartDataDefinition,
                         String serializedChartModel,
                         int chartWidth,
                         int chartHeight)
                         throws IOException
Convenience method that returns a complete HTML document containing the chart. Resource references point back to the BI Server.

Throws:
IOException

mergeStaticImageHtmlTemplate

String mergeStaticImageHtmlTemplate(String imageUrl)

mergeOpenFlashChartHtmlTemplate

String mergeOpenFlashChartHtmlTemplate(String openFlashChartJson,
                                       String swfUrl)

buildEmptyOpenFlashChartHtmlFragment

String buildEmptyOpenFlashChartHtmlFragment(String msg)

buildOpenFlashChartHtmlFragment

String buildOpenFlashChartHtmlFragment(String openFlashChartJson,
                                       String swfUrl,
                                       String chartWidth,
                                       String chartHeight)

getHtmlTemplate

String getHtmlTemplate()

getFlashScriptFragment

String getFlashScriptFragment()

getFlashObjectFragment

String getFlashObjectFragment()

mergeJFreeChartHtmlTemplate

String mergeJFreeChartHtmlTemplate(File imageFile,
                                   String imageMap,
                                   String imageMapName,
                                   int chartWidth,
                                   int chartHeight,
                                   String contextPath)