public class DefaultChartBeansGenerator extends Object implements IChartBeansGenerator
Constructor and Description |
---|
DefaultChartBeansGenerator() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected org.pentaho.actionsequence.dom.ActionSequenceDocument |
createActionSequenceDocument(Set<String> parameterNameSet,
String contentLinkingTemplate)
Creates an
ActionSequenceDocument that will run an MQL query and pipe the results in the ChartBeans
ChartComponent . |
protected void |
createAndRunActionSequence(org.pentaho.platform.api.engine.IPentahoSession pentahoSession,
Map<String,Object> params,
Map<String,Object> defaultParameterMap,
String contentLinkingTemplate,
OutputStream out) |
String |
createChartAsHtml(org.pentaho.platform.api.engine.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(org.pentaho.platform.api.engine.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) |
protected void |
runActionSequence(org.pentaho.platform.api.engine.IPentahoSession pentahoSession,
Map<String,org.pentaho.platform.api.engine.IParameterProvider> parameterProviders,
org.pentaho.platform.api.engine.IOutputHandler outputHandler,
org.pentaho.actionsequence.dom.ActionSequenceDocument doc)
Executes an action sequence from an
ActionSequenceDocument . |
protected void createAndRunActionSequence(org.pentaho.platform.api.engine.IPentahoSession pentahoSession, Map<String,Object> params, Map<String,Object> defaultParameterMap, String contentLinkingTemplate, OutputStream out)
protected void runActionSequence(org.pentaho.platform.api.engine.IPentahoSession pentahoSession, Map<String,org.pentaho.platform.api.engine.IParameterProvider> parameterProviders, org.pentaho.platform.api.engine.IOutputHandler outputHandler, org.pentaho.actionsequence.dom.ActionSequenceDocument doc) throws RuntimeException
ActionSequenceDocument
.pentahoSession
- current IPentahoSession
parameterProviders
- map of parameter providers; there should a single entry with "request" as the keyoutputHandler
- output handlerdoc
- action sequence documentRuntimeException
- if anything goes wrongprotected org.pentaho.actionsequence.dom.ActionSequenceDocument createActionSequenceDocument(Set<String> parameterNameSet, String contentLinkingTemplate)
ActionSequenceDocument
that will run an MQL query and pipe the results in the ChartBeans
ChartComponent
.parameterNameSet
- set of parameter names that appear in the MQL querypublic String buildEmptyOpenFlashChartHtmlFragment(String msg)
buildEmptyOpenFlashChartHtmlFragment
in interface IChartBeansGenerator
public String buildOpenFlashChartHtmlFragment(String openFlashChartJson, String swfUrl, String chartWidth, String chartHeight)
Only exposed for debugging (i.e. hosted mode) purposes.
buildOpenFlashChartHtmlFragment
in interface IChartBeansGenerator
public String buildJFreeChartHtmlFragment(File imageFile, String imageMap, String imageMapName, int chartWidth, int chartHeight, String contextPath)
public String createChartAsHtml(org.pentaho.platform.api.engine.IPentahoSession userSession, Map<String,Object> parameterMap, String serializedChartDataDefinition, String serializedChartModel, int chartWidth, int chartHeight, String contentLinkingTemplate) throws IOException
IOException
public String createChartAsHtml(org.pentaho.platform.api.engine.IPentahoSession userSession, Map<String,Object> parameterMap, String serializedChartDataDefinition, String serializedChartModel, int chartWidth, int chartHeight) throws IOException
IChartBeansGenerator
createChartAsHtml
in interface IChartBeansGenerator
IOException
public String mergeOpenFlashChartHtmlTemplate(String openFlashChartJson, String swfUrl)
mergeOpenFlashChartHtmlTemplate
in interface IChartBeansGenerator
public String mergeJFreeChartHtmlTemplate(File imageFile, String imageMap, String imageMapName, int chartWidth, int chartHeight, String contextPath)
mergeJFreeChartHtmlTemplate
in interface IChartBeansGenerator
public String mergeStaticImageHtmlTemplate(String imageUrl)
mergeStaticImageHtmlTemplate
in interface IChartBeansGenerator
public String getHtmlTemplate()
getHtmlTemplate
in interface IChartBeansGenerator
public String getFlashScriptFragment()
getFlashScriptFragment
in interface IChartBeansGenerator
public String getFlashObjectFragment()
getFlashObjectFragment
in interface IChartBeansGenerator
Copyright © 2021 Hitachi Vantara. All rights reserved.