|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.plugin.action.chartbeans.ChartComponent
public class ChartComponent
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.
| Constructor Summary | |
|---|---|
ChartComponent()
|
|
| Method Summary | |
|---|---|
boolean |
execute()
Called to process the chart definition and data set to produce a usable chart. |
java.lang.String |
getChartEngine()
Get the chart engine that the resulting chart was created through |
boolean |
getConvertNullsToZero()
|
java.lang.String |
getMimeType()
Fetch the desired MimeType |
java.lang.String |
getSwfName()
|
java.lang.String |
getSwfPath()
|
void |
setCategoryColumn(java.lang.String categoryCol)
Define the column in the data set that contains the Category data |
void |
setChartData(org.pentaho.commons.connection.IPentahoResultSet chartDataSet)
Define the data set that will populate the chart |
void |
setChartEngine(java.lang.String chartEngine)
Set the chart engine to render the chart |
void |
setChartHeight(int chartHeight)
Set the height of the chart in units specific to the ChartPlugin |
void |
setChartHeight(java.lang.String chartHeight)
Set the height of the chart in units specific to the ChartPlugin |
void |
setChartModel(org.pentaho.chart.model.ChartModel chartModel)
Set the ChartModel |
void |
setChartModelJson(java.lang.String chartModelJson)
Set the JSON representation of the ChartModel |
void |
setChartModelXml(java.lang.String chartModelXml)
Set the XML representation of the ChartModel |
void |
setChartWidth(int chartWidth)
Set the width of the chart in units specific to the ChartPlugin |
void |
setChartWidth(java.lang.String chartWidth)
Set the width of the chart in units specific to the ChartPlugin |
void |
setContentLinkingTemplate(java.lang.String template)
|
void |
setConvertNullsToZero(boolean convert)
|
void |
setOutputStream(java.io.OutputStream outStream)
Define the OutputStream to which the resulting chart shall be written |
void |
setOutputType(java.lang.String outputType)
|
void |
setScalingFactor(java.lang.Double scalingFactor)
|
void |
setSeriesColumn(java.lang.String seriesCol)
Define the column in the data set that contains the Series/Domain data |
void |
setValueColumn(java.lang.String valueCol)
Define the column in the data set that contains the Value/Range data |
boolean |
validate()
Validate the current settings of the ChartComponent. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChartComponent()
| Method Detail |
|---|
public boolean execute()
throws ChartBootException,
org.pentaho.chart.plugin.ChartProcessingException,
org.pentaho.reporting.libraries.resourceloader.ResourceException,
org.pentaho.chart.InvalidChartDefinition,
java.io.IOException,
org.pentaho.chart.plugin.api.PersistenceException
ChartBootException
org.pentaho.chart.plugin.ChartProcessingException
org.pentaho.reporting.libraries.resourceloader.ResourceException
org.pentaho.chart.InvalidChartDefinition
java.io.IOException
org.pentaho.chart.plugin.api.PersistenceExceptionpublic void setOutputStream(java.io.OutputStream outStream)
outStream - Stream receive the chartpublic void setChartData(org.pentaho.commons.connection.IPentahoResultSet chartDataSet)
chartDataSet - data set for charting
public boolean validate()
throws java.lang.Exception
java.lang.Exceptionpublic void setSeriesColumn(java.lang.String seriesCol)
seriesCol - name of column that contains the Series/Domain for the chartpublic void setConvertNullsToZero(boolean convert)
public boolean getConvertNullsToZero()
public void setCategoryColumn(java.lang.String categoryCol)
seriesCol - name of column that contains the Category for the chartpublic void setValueColumn(java.lang.String valueCol)
seriesCol - name of column that contains the Value/Range for the chartpublic java.lang.String getMimeType()
public void setChartModelJson(java.lang.String chartModelJson)
chartModelJson - JSON serialized representation of the ChartModelpublic void setChartModelXml(java.lang.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(java.lang.String chartWidth)
chartWidth - width of the chartpublic void setChartHeight(java.lang.String chartHeight)
chartHeight - height of the chartpublic java.lang.String getChartEngine()
public void setChartEngine(java.lang.String chartEngine)
chartEngine - Value of "JFreeChart" or "OpenFlashChart"public void setOutputType(java.lang.String outputType)
public void setScalingFactor(java.lang.Double scalingFactor)
public java.lang.String getSwfPath()
public java.lang.String getSwfName()
public void setContentLinkingTemplate(java.lang.String template)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||