|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectro.nextreports.engine.chart.ChartRunner
public class ChartRunner
| Field Summary | |
|---|---|
static java.lang.String |
GRAPHIC_FORMAT
|
static java.lang.String |
IMAGE_FORMAT
|
static java.lang.String |
TABLE_FORMAT
|
| Constructor Summary | |
|---|---|
ChartRunner()
|
|
| Method Summary | |
|---|---|
ro.nextreports.engine.exporter.util.AlarmData |
getAlarmData()
Get alarm data ALARM exporter |
Chart |
getChart()
Get next chart object |
java.lang.String |
getChartImageAbsolutePath()
Get chart image asbolute path after export with IMAGE_FORMAT |
java.lang.String |
getChartImageName()
Get chart image name after export with IMAGE_FORMAT |
java.sql.Connection |
getConnection()
Get database connection |
java.lang.String |
getFormat()
Get output format |
ro.nextreports.engine.exporter.util.IndicatorData |
getIndicatorData()
Get indicator data INDICATOR exporter |
java.util.Map<java.lang.String,java.lang.Object> |
getParameterValues()
Get parameters values |
int |
getQueryTimeout()
Get query execution timeout |
ro.nextreports.engine.exporter.util.TableData |
getTableData()
Get table data TABLE exporter |
boolean |
run()
Export the current chart to table |
boolean |
run(java.io.OutputStream stream)
Export the current chart to the specified output format For IMAGE_FORMAT use withImagePath method. |
void |
setChart(Chart chart)
Set next chart object |
void |
setConnection(java.sql.Connection connection)
Set database connection |
void |
setConnection(java.sql.Connection connection,
boolean csv)
Set database connection |
void |
setDrillFunction(java.lang.String drillFunction)
Set a drill function for onclick action |
void |
setFormat(java.lang.String format)
Set output format |
void |
setImageHeight(int imageHeight)
Set image height : has meaning just for IMAGE_FORMAT type if not set, default value is 300 |
void |
setImageName(java.lang.String imageName)
Set image name : has meaning just for IMAGE_FORMAT type |
void |
setImagePath(java.lang.String imagePath)
Set image path : has meaning just for IMAGE_FORMAT type |
void |
setImageWidth(int imageWidth)
Set image width : has meaning just for IMAGE_FORMAT type if not set, default value is 500 |
void |
setParameterValues(java.util.Map<java.lang.String,java.lang.Object> parameterValues)
Set parameters values parameterValues is a map of parameters values where the key is the parameter name and the value is the parameter value(s) Such parameter value can be a simple java object if the parameter has SINGLE SELECTION, or in case of MULTIPLE SELECTION value is an array Object[] of java objects. |
void |
setQueryTimeout(int queryTimeout)
Set query execution timeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String GRAPHIC_FORMAT
public static final java.lang.String TABLE_FORMAT
public static final java.lang.String IMAGE_FORMAT
| Constructor Detail |
|---|
public ChartRunner()
| Method Detail |
|---|
public java.sql.Connection getConnection()
public void setConnection(java.sql.Connection connection)
connection - database connection
public void setConnection(java.sql.Connection connection,
boolean csv)
connection - database connectioncsv - true for a csv file connectionpublic Chart getChart()
public void setChart(Chart chart)
chart - next chart objectpublic java.lang.String getFormat()
public void setFormat(java.lang.String format)
format - output formatpublic java.util.Map<java.lang.String,java.lang.Object> getParameterValues()
public void setParameterValues(java.util.Map<java.lang.String,java.lang.Object> parameterValues)
parameterValues - parameters valuespublic int getQueryTimeout()
public void setQueryTimeout(int queryTimeout)
queryTimeout - query execution timeout in secondspublic void setDrillFunction(java.lang.String drillFunction)
drillFunction - drill function text
public boolean run()
throws ReportRunnerException,
ro.nextreports.engine.exporter.exception.NoDataFoundException,
java.lang.InterruptedException
run in interface RunnerReportRunnerException - if ChartRunner object is not correctly configured
ro.nextreports.engine.exporter.exception.NoDataFoundException - if chart has no data
java.lang.InterruptedException - if process was interrupted
public boolean run(java.io.OutputStream stream)
throws ReportRunnerException,
ro.nextreports.engine.exporter.exception.NoDataFoundException,
java.lang.InterruptedException
run in interface Runnerstream - output stream to write the exported chart
ReportRunnerException - if ChartRunner object is not correctly configured
ro.nextreports.engine.exporter.exception.NoDataFoundException - if chart has no data
java.lang.InterruptedException - if process was interruptedpublic ro.nextreports.engine.exporter.util.TableData getTableData()
getTableData in interface Runnerpublic ro.nextreports.engine.exporter.util.AlarmData getAlarmData()
getAlarmData in interface Runnerpublic ro.nextreports.engine.exporter.util.IndicatorData getIndicatorData()
getIndicatorData in interface Runnerpublic void setImagePath(java.lang.String imagePath)
imagePath - image pathpublic void setImageName(java.lang.String imageName)
imageName - image namepublic void setImageWidth(int imageWidth)
imageWidth - image widthpublic void setImageHeight(int imageHeight)
imageHeight - image heightpublic java.lang.String getChartImageName()
public java.lang.String getChartImageAbsolutePath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||