Class ChartComponent
java.lang.Object
org.pentaho.platform.plugin.action.chartbeans.ChartComponent
Deprecated.
This is a bean that permits easy access to the ChartBeans functionality and was specifically designed to be run from
within the Pentaho Platform as an Action Sequence Component.
- Author:
- cboyden
-
Field Summary
Modifier and TypeFieldDescriptionprotected Exception
Deprecated.protected int
Deprecated.protected String
Deprecated.protected String
Deprecated.protected int
Deprecated.protected org.pentaho.chart.model.ChartModel
Deprecated.protected String
Deprecated.protected String
Deprecated.protected int
Deprecated.protected String
Deprecated.protected boolean
Deprecated.protected static final int
Deprecated.protected static final int
Deprecated.protected OutputStream
Deprecated.protected String
Deprecated.protected org.pentaho.commons.connection.IPentahoResultSet
Deprecated.protected Number
Deprecated.protected int
Deprecated.protected String
Deprecated.protected String
Deprecated.protected int
Deprecated.protected String
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
execute()
Deprecated.Called to process the chart definition and data set to produce a usable chart.Deprecated.Get the chart engine that the resulting chart was created throughboolean
Deprecated.Deprecated.Fetch the desired MimeTypeprotected org.pentaho.chart.plugin.api.IOutput.OutputTypes
Deprecated.Fetch the desired output typeDeprecated.Deprecated.protected void
Deprecated.Sets the chart engine based on the order of precedence: 1) Chart Definition 2) Action Sequence 3) System Setting 4) Hard Codedprotected void
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 datavoid
setChartData
(org.pentaho.commons.connection.IPentahoResultSet chartDataSet) Deprecated.Define the data set that will populate the chartvoid
setChartEngine
(String chartEngine) Deprecated.Set the chart engine to render the chartvoid
setChartHeight
(int chartHeight) Deprecated.Set the height of the chart in units specific to the ChartPluginvoid
setChartHeight
(String chartHeight) Deprecated.Set the height of the chart in units specific to the ChartPluginvoid
setChartModel
(org.pentaho.chart.model.ChartModel chartModel) Deprecated.Set the ChartModelvoid
setChartModelJson
(String chartModelJson) Deprecated.Set the JSON representation of the ChartModelvoid
setChartModelXml
(String chartModelXml) Deprecated.Set the XML representation of the ChartModelvoid
setChartWidth
(int chartWidth) Deprecated.Set the width of the chart in units specific to the ChartPluginvoid
setChartWidth
(String chartWidth) Deprecated.Set the width of the chart in units specific to the ChartPluginvoid
setContentLinkingTemplate
(String template) Deprecated.void
setConvertNullsToZero
(boolean convert) Deprecated.void
setOutputStream
(OutputStream outStream) Deprecated.Define the OutputStream to which the resulting chart shall be writtenvoid
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 datavoid
setValueColumn
(String valueCol) Deprecated.Define the column in the data set that contains the Value/Range databoolean
validate()
Deprecated.Validate the current settings of the ChartComponent.
-
Field Details
-
DEFAULT_CHART_WIDTH
protected static final int DEFAULT_CHART_WIDTHDeprecated.- See Also:
-
DEFAULT_CHART_HEIGHT
protected static final int DEFAULT_CHART_HEIGHTDeprecated.- See Also:
-
convertNullsToZero
protected boolean convertNullsToZeroDeprecated. -
seriesColumnName
Deprecated. -
seriesColumn
protected int seriesColumnDeprecated. -
categoryColumnName
Deprecated. -
categoryColumn
protected int categoryColumnDeprecated. -
valueColumnName
Deprecated. -
valueColumn
protected int valueColumnDeprecated. -
resultSet
protected org.pentaho.commons.connection.IPentahoResultSet resultSetDeprecated. -
chartEngine
Deprecated. -
bootException
Deprecated. -
outputType
Deprecated. -
chartWidth
protected int chartWidthDeprecated. -
chartHeight
protected int chartHeightDeprecated. -
scalingFactor
Deprecated. -
outputStream
Deprecated. -
chartModelJson
Deprecated. -
chartModelXml
Deprecated. -
chartModel
protected org.pentaho.chart.model.ChartModel chartModelDeprecated. -
contentLinkingTemplate
Deprecated. -
title
Deprecated.
-
-
Constructor Details
-
ChartComponent
public ChartComponent()Deprecated.
-
-
Method Details
-
execute
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.PersistenceExceptionDeprecated.Called to process the chart definition and data set to produce a usable chart.- Returns:
- state of execution. 'true' if execution was successful, otherwise false.
- Throws:
ChartBootException
org.pentaho.chart.plugin.ChartProcessingException
org.pentaho.reporting.libraries.resourceloader.ResourceException
org.pentaho.chart.InvalidChartDefinition
IOException
org.pentaho.chart.plugin.api.PersistenceException
-
processChartData
protected Object[][] processChartData(org.pentaho.commons.connection.IPentahoResultSet resultSet, int valueColumnIndex) Deprecated.Transform the IPentahoResultSet into the data format suitable for chart creation.- Returns:
- Row / Column data table or null
-
setOutputStream
Deprecated.Define the OutputStream to which the resulting chart shall be written- Parameters:
outStream
- Stream receive the chart
-
setChartData
public void setChartData(org.pentaho.commons.connection.IPentahoResultSet chartDataSet) Deprecated.Define the data set that will populate the chart- Parameters:
chartDataSet
- data set for charting
-
validate
Deprecated.Validate the current settings of the ChartComponent. If validate() returns true, then execute may be called. If validate() returns false, a call to execute() is guaranteed to fail.- Returns:
- state of validation
- Throws:
Exception
-
setSeriesColumn
Deprecated.Define the column in the data set that contains the Series/Domain data- Parameters:
seriesCol
- name of column that contains the Series/Domain for the chart
-
setConvertNullsToZero
public void setConvertNullsToZero(boolean convert) Deprecated. -
getConvertNullsToZero
public boolean getConvertNullsToZero()Deprecated. -
setCategoryColumn
Deprecated.Define the column in the data set that contains the Category data- Parameters:
seriesCol
- name of column that contains the Category for the chart
-
setValueColumn
Deprecated.Define the column in the data set that contains the Value/Range data- Parameters:
seriesCol
- name of column that contains the Value/Range for the chart
-
getOutputType
protected org.pentaho.chart.plugin.api.IOutput.OutputTypes getOutputType()Deprecated.Fetch the desired output type- Returns:
- output type
-
getMimeType
Deprecated.Fetch the desired MimeType- Returns:
- mime type
-
loadChartEngine
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 -
loadChartModel
protected void loadChartModel()Deprecated. -
setChartModelJson
Deprecated.Set the JSON representation of the ChartModel- Parameters:
chartModelJson
- JSON serialized representation of the ChartModel
-
setChartModelXml
Deprecated.Set the XML representation of the ChartModel- Parameters:
chartStyleXml
- XML serialized representation of the ChartModel
-
setChartModel
public void setChartModel(org.pentaho.chart.model.ChartModel chartModel) Deprecated.Set the ChartModel- Parameters:
chartModel
- model of the chart to be generated
-
setChartWidth
public void setChartWidth(int chartWidth) Deprecated.Set the width of the chart in units specific to the ChartPlugin- Parameters:
chartWidth
- width of the chart
-
setChartHeight
public void setChartHeight(int chartHeight) Deprecated.Set the height of the chart in units specific to the ChartPlugin- Parameters:
chartHeight
- height of the chart
-
setChartWidth
Deprecated.Set the width of the chart in units specific to the ChartPlugin- Parameters:
chartWidth
- width of the chart
-
setChartHeight
Deprecated.Set the height of the chart in units specific to the ChartPlugin- Parameters:
chartHeight
- height of the chart
-
getChartEngine
Deprecated.Get the chart engine that the resulting chart was created through- Returns:
-
setChartEngine
Deprecated.Set the chart engine to render the chart- Parameters:
chartEngine
- Value of "JFreeChart" or "OpenFlashChart"
-
setOutputType
Deprecated. -
setScalingFactor
Deprecated. -
getSwfPath
Deprecated. -
getSwfName
Deprecated. -
setContentLinkingTemplate
Deprecated.
-
ChartAction