Class DrawGChartFunction
- java.lang.Object
-
- org.neotropic.kuwaiba.modules.optional.reports.javascript.JavaScriptFunction
-
- org.neotropic.kuwaiba.modules.optional.reports.plugins.gcharts.DrawGChartFunction
-
public class DrawGChartFunction extends JavaScriptFunction
JavaScript function to draw a specified type of chart- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description DrawGChartFunction(String functionName, String chartTitle, DataTable dataTable, GChartsFactory.ChartType chartType, HTMLDiv htmlDiv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCodeBlock()
Mapping the statements and parameters of the JavaScript Function-
Methods inherited from class org.neotropic.kuwaiba.modules.optional.reports.javascript.JavaScriptFunction
getFunctionName, getJavaScriptFunctionParameters, setFunctionName, setJavaScriptFunctionParameters, toString
-
-
-
-
Constructor Detail
-
DrawGChartFunction
public DrawGChartFunction(String functionName, String chartTitle, DataTable dataTable, GChartsFactory.ChartType chartType, HTMLDiv htmlDiv)
- Parameters:
functionName
- Unique name to identify the draw chart operationchartTitle
- The chart titledataTable
- The data set to show in the chartchartType
- The type of chart to draw seeChartType
htmlDiv
- The div tag used to render the chart
-
-
Method Detail
-
getCodeBlock
public String getCodeBlock() throws Exception
Description copied from class:JavaScriptFunction
Mapping the statements and parameters of the JavaScript Function- Specified by:
getCodeBlock
in classJavaScriptFunction
- Returns:
- code block inside curly brackets {...}
- Throws:
Exception
- Throw to notify to some error when process the code block of the function, example: data malformed.
-
-