ChartAction
public class ChartComponent extends Object
Modifier and Type | Field and Description |
---|---|
protected Exception |
bootException
Deprecated.
|
protected int |
categoryColumn
Deprecated.
|
protected String |
categoryColumnName
Deprecated.
|
protected String |
chartEngine
Deprecated.
|
protected int |
chartHeight
Deprecated.
|
protected org.pentaho.chart.model.ChartModel |
chartModel
Deprecated.
|
protected String |
chartModelJson
Deprecated.
|
protected String |
chartModelXml
Deprecated.
|
protected int |
chartWidth
Deprecated.
|
protected String |
contentLinkingTemplate
Deprecated.
|
protected boolean |
convertNullsToZero
Deprecated.
|
protected static int |
DEFAULT_CHART_HEIGHT
Deprecated.
|
protected static int |
DEFAULT_CHART_WIDTH
Deprecated.
|
protected OutputStream |
outputStream
Deprecated.
|
protected String |
outputType
Deprecated.
|
protected org.pentaho.commons.connection.IPentahoResultSet |
resultSet
Deprecated.
|
protected Number |
scalingFactor
Deprecated.
|
protected int |
seriesColumn
Deprecated.
|
protected String |
seriesColumnName
Deprecated.
|
protected String |
title
Deprecated.
|
protected int |
valueColumn
Deprecated.
|
protected String |
valueColumnName
Deprecated.
|
Constructor and Description |
---|
ChartComponent()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute()
Deprecated.
Called to process the chart definition and data set to produce a usable chart.
|
String |
getChartEngine()
Deprecated.
Get the chart engine that the resulting chart was created through
|
boolean |
getConvertNullsToZero()
Deprecated.
|
String |
getMimeType()
Deprecated.
Fetch the desired MimeType
|
protected org.pentaho.chart.plugin.api.IOutput.OutputTypes |
getOutputType()
Deprecated.
Fetch the desired output type
|
String |
getSwfName()
Deprecated.
|
String |
getSwfPath()
Deprecated.
|
protected void |
loadChartEngine()
Deprecated.
Sets the chart engine based on the order of precedence: 1) Chart Definition 2) Action Sequence 3) System Setting 4)
Hard Coded
|
protected void |
loadChartModel()
Deprecated.
|
protected Object[][] |
processChartData(org.pentaho.commons.connection.IPentahoResultSet resultSet,
int valueColumnIndex)
Deprecated.
Transform the IPentahoResultSet into the data format suitable for chart creation.
|
void |
setCategoryColumn(String categoryCol)
Deprecated.
Define the column in the data set that contains the Category data
|
void |
setChartData(org.pentaho.commons.connection.IPentahoResultSet chartDataSet)
Deprecated.
Define the data set that will populate the chart
|
void |
setChartEngine(String chartEngine)
Deprecated.
Set the chart engine to render the chart
|
void |
setChartHeight(int chartHeight)
Deprecated.
Set the height of the chart in units specific to the ChartPlugin
|
void |
setChartHeight(String chartHeight)
Deprecated.
Set the height of the chart in units specific to the ChartPlugin
|
void |
setChartModel(org.pentaho.chart.model.ChartModel chartModel)
Deprecated.
Set the ChartModel
|
void |
setChartModelJson(String chartModelJson)
Deprecated.
Set the JSON representation of the ChartModel
|
void |
setChartModelXml(String chartModelXml)
Deprecated.
Set the XML representation of the ChartModel
|
void |
setChartWidth(int chartWidth)
Deprecated.
Set the width of the chart in units specific to the ChartPlugin
|
void |
setChartWidth(String chartWidth)
Deprecated.
Set the width of the chart in units specific to the ChartPlugin
|
void |
setContentLinkingTemplate(String template)
Deprecated.
|
void |
setConvertNullsToZero(boolean convert)
Deprecated.
|
void |
setOutputStream(OutputStream outStream)
Deprecated.
Define the OutputStream to which the resulting chart shall be written
|
void |
setOutputType(String outputType)
Deprecated.
|
void |
setScalingFactor(Double scalingFactor)
Deprecated.
|
void |
setSeriesColumn(String seriesCol)
Deprecated.
Define the column in the data set that contains the Series/Domain data
|
void |
setValueColumn(String valueCol)
Deprecated.
Define the column in the data set that contains the Value/Range data
|
boolean |
validate()
Deprecated.
Validate the current settings of the ChartComponent.
|
protected static final int DEFAULT_CHART_WIDTH
protected static final int DEFAULT_CHART_HEIGHT
protected boolean convertNullsToZero
protected String seriesColumnName
protected int seriesColumn
protected String categoryColumnName
protected int categoryColumn
protected String valueColumnName
protected int valueColumn
protected org.pentaho.commons.connection.IPentahoResultSet resultSet
protected String chartEngine
protected Exception bootException
protected String outputType
protected int chartWidth
protected int chartHeight
protected Number scalingFactor
protected OutputStream outputStream
protected String chartModelJson
protected String chartModelXml
protected org.pentaho.chart.model.ChartModel chartModel
protected String contentLinkingTemplate
protected String title
public boolean execute() throws ChartBootException, org.pentaho.chart.plugin.ChartProcessingException, org.pentaho.reporting.libraries.resourceloader.ResourceException, org.pentaho.chart.InvalidChartDefinition, IOException, org.pentaho.chart.plugin.api.PersistenceException
ChartBootException
org.pentaho.chart.plugin.ChartProcessingException
org.pentaho.reporting.libraries.resourceloader.ResourceException
org.pentaho.chart.InvalidChartDefinition
IOException
org.pentaho.chart.plugin.api.PersistenceException
protected Object[][] processChartData(org.pentaho.commons.connection.IPentahoResultSet resultSet, int valueColumnIndex)
public void setOutputStream(OutputStream outStream)
outStream
- Stream receive the chartpublic void setChartData(org.pentaho.commons.connection.IPentahoResultSet chartDataSet)
chartDataSet
- data set for chartingpublic boolean validate() throws Exception
Exception
public void setSeriesColumn(String seriesCol)
seriesCol
- name of column that contains the Series/Domain for the chartpublic void setConvertNullsToZero(boolean convert)
public boolean getConvertNullsToZero()
public void setCategoryColumn(String categoryCol)
seriesCol
- name of column that contains the Category for the chartpublic void setValueColumn(String valueCol)
seriesCol
- name of column that contains the Value/Range for the chartprotected org.pentaho.chart.plugin.api.IOutput.OutputTypes getOutputType()
public String getMimeType()
protected void loadChartEngine()
protected void loadChartModel()
public void setChartModelJson(String chartModelJson)
chartModelJson
- JSON serialized representation of the ChartModelpublic void setChartModelXml(String chartModelXml)
chartStyleXml
- XML serialized representation of the ChartModelpublic void setChartModel(org.pentaho.chart.model.ChartModel chartModel)
chartModel
- model of the chart to be generatedpublic void setChartWidth(int chartWidth)
chartWidth
- width of the chartpublic void setChartHeight(int chartHeight)
chartHeight
- height of the chartpublic void setChartWidth(String chartWidth)
chartWidth
- width of the chartpublic void setChartHeight(String chartHeight)
chartHeight
- height of the chartpublic String getChartEngine()
public void setChartEngine(String chartEngine)
chartEngine
- Value of "JFreeChart" or "OpenFlashChart"public void setOutputType(String outputType)
public void setScalingFactor(Double scalingFactor)
public String getSwfPath()
public String getSwfName()
public void setContentLinkingTemplate(String template)
Copyright © 2021 Hitachi Vantara. All rights reserved.