org.pentaho.platform.plugin.action.chartbeans
Class ChartBeansGeneratorUtil

java.lang.Object
  extended by org.pentaho.platform.plugin.action.chartbeans.ChartBeansGeneratorUtil

public class ChartBeansGeneratorUtil
extends java.lang.Object

Takes all inputs necessary to generate a chart and passes them to the ChartBeans engine (via an xaction).


Method Summary
static java.lang.String buildEmptyOpenFlashChartHtmlFragment(java.lang.String msg)
           
static java.lang.String createChartAsHtml(IPentahoSession userSession, java.util.Map<java.lang.String,java.lang.Object> parameterMap, java.lang.String serializedChartDataDefinition, java.lang.String serializedChartModel, int chartWidth, int chartHeight)
           
static java.lang.String createChartAsHtml(IPentahoSession userSession, java.util.Map<java.lang.String,java.lang.Object> parameterMap, java.lang.String serializedChartDataDefinition, java.lang.String serializedChartModel, int chartWidth, int chartHeight, java.lang.String contentLinkingTemplate)
           
static java.lang.String mergeJFreeChartHtmlTemplate(java.io.File imageFile, java.lang.String imageMap, java.lang.String imageMapName, int chartWidth, int chartHeight, java.lang.String contextPath)
           
static java.lang.String mergeOpenFlashChartHtmlTemplate(java.lang.String openFlashChartJson, java.lang.String swfUrl)
          Does this method belong in ChartBeansGeneratorUtil? ChartBeansGeneratorUtil may be more of a convenience for executing the default ActionSequence, if this is to hold true, this method probably needs a new home more central to the ChartBeans code.
static java.lang.String mergeStaticImageHtmlTemplate(java.lang.String imageUrl)
          Returns a complete HTML document that references a static image held in a temporary file on the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createChartAsHtml

public static java.lang.String createChartAsHtml(IPentahoSession userSession,
                                                 java.util.Map<java.lang.String,java.lang.Object> parameterMap,
                                                 java.lang.String serializedChartDataDefinition,
                                                 java.lang.String serializedChartModel,
                                                 int chartWidth,
                                                 int chartHeight)
                                          throws java.io.IOException
Throws:
java.io.IOException

createChartAsHtml

public static java.lang.String createChartAsHtml(IPentahoSession userSession,
                                                 java.util.Map<java.lang.String,java.lang.Object> parameterMap,
                                                 java.lang.String serializedChartDataDefinition,
                                                 java.lang.String serializedChartModel,
                                                 int chartWidth,
                                                 int chartHeight,
                                                 java.lang.String contentLinkingTemplate)
                                          throws java.io.IOException
Throws:
java.io.IOException

mergeJFreeChartHtmlTemplate

public static java.lang.String mergeJFreeChartHtmlTemplate(java.io.File imageFile,
                                                           java.lang.String imageMap,
                                                           java.lang.String imageMapName,
                                                           int chartWidth,
                                                           int chartHeight,
                                                           java.lang.String contextPath)

mergeStaticImageHtmlTemplate

public static java.lang.String mergeStaticImageHtmlTemplate(java.lang.String imageUrl)
Returns a complete HTML document that references a static image held in a temporary file on the server.

Only exposed for debugging (i.e. hosted mode) purposes.


mergeOpenFlashChartHtmlTemplate

public static java.lang.String mergeOpenFlashChartHtmlTemplate(java.lang.String openFlashChartJson,
                                                               java.lang.String swfUrl)
Does this method belong in ChartBeansGeneratorUtil? ChartBeansGeneratorUtil may be more of a convenience for executing the default ActionSequence, if this is to hold true, this method probably needs a new home more central to the ChartBeans code. Returns a complete HTML document that references an Open Flash Chart SWF resource that resides on the server along with the data that should be displayed in the chart (via a JavaScript function that returns a JSON string).

Only exposed for debugging (i.e. hosted mode) purposes.


buildEmptyOpenFlashChartHtmlFragment

public static java.lang.String buildEmptyOpenFlashChartHtmlFragment(java.lang.String msg)