org.pentaho.platform.plugin.action.chartbeans
Class DefaultChartBeansGenerator
java.lang.Object
org.pentaho.platform.plugin.action.chartbeans.DefaultChartBeansGenerator
- All Implemented Interfaces:
- IChartBeansGenerator
public class DefaultChartBeansGenerator
- extends Object
- implements IChartBeansGenerator
Method Summary |
String |
buildEmptyOpenFlashChartHtmlFragment(String msg)
|
String |
buildJFreeChartHtmlFragment(File imageFile,
String imageMap,
String imageMapName,
int chartWidth,
int chartHeight,
String contextPath)
|
String |
buildOpenFlashChartHtmlFragment(String openFlashChartJson,
String swfUrl,
String chartWidth,
String chartHeight)
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. |
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 |
createChartAsHtml(IPentahoSession userSession,
Map<String,Object> parameterMap,
String serializedChartDataDefinition,
String serializedChartModel,
int chartWidth,
int chartHeight,
String contentLinkingTemplate)
|
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)
|
DefaultChartBeansGenerator
public DefaultChartBeansGenerator()
buildEmptyOpenFlashChartHtmlFragment
public String buildEmptyOpenFlashChartHtmlFragment(String msg)
- Specified by:
buildEmptyOpenFlashChartHtmlFragment
in interface IChartBeansGenerator
buildOpenFlashChartHtmlFragment
public String buildOpenFlashChartHtmlFragment(String openFlashChartJson,
String swfUrl,
String chartWidth,
String chartHeight)
- 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.
- Specified by:
buildOpenFlashChartHtmlFragment
in interface IChartBeansGenerator
buildJFreeChartHtmlFragment
public String buildJFreeChartHtmlFragment(File imageFile,
String imageMap,
String imageMapName,
int chartWidth,
int chartHeight,
String contextPath)
createChartAsHtml
public String createChartAsHtml(IPentahoSession userSession,
Map<String,Object> parameterMap,
String serializedChartDataDefinition,
String serializedChartModel,
int chartWidth,
int chartHeight,
String contentLinkingTemplate)
throws IOException
- Throws:
IOException
createChartAsHtml
public String createChartAsHtml(IPentahoSession userSession,
Map<String,Object> parameterMap,
String serializedChartDataDefinition,
String serializedChartModel,
int chartWidth,
int chartHeight)
throws IOException
- Description copied from interface:
IChartBeansGenerator
- Convenience method that returns a complete HTML document containing the chart. Resource references point back to
the BI Server.
- Specified by:
createChartAsHtml
in interface IChartBeansGenerator
- Throws:
IOException
mergeOpenFlashChartHtmlTemplate
public String mergeOpenFlashChartHtmlTemplate(String openFlashChartJson,
String swfUrl)
- Specified by:
mergeOpenFlashChartHtmlTemplate
in interface IChartBeansGenerator
mergeJFreeChartHtmlTemplate
public String mergeJFreeChartHtmlTemplate(File imageFile,
String imageMap,
String imageMapName,
int chartWidth,
int chartHeight,
String contextPath)
- Specified by:
mergeJFreeChartHtmlTemplate
in interface IChartBeansGenerator
mergeStaticImageHtmlTemplate
public String mergeStaticImageHtmlTemplate(String imageUrl)
- Specified by:
mergeStaticImageHtmlTemplate
in interface IChartBeansGenerator
getHtmlTemplate
public String getHtmlTemplate()
- Specified by:
getHtmlTemplate
in interface IChartBeansGenerator
getFlashScriptFragment
public String getFlashScriptFragment()
- Specified by:
getFlashScriptFragment
in interface IChartBeansGenerator
getFlashObjectFragment
public String getFlashObjectFragment()
- Specified by:
getFlashObjectFragment
in interface IChartBeansGenerator