|
EspressReport v 6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
quadbase.ChartAPI.QbChart | +--quadbase.reportdesigner.ReportAPI.ChartObject
A ChartObject is a chart that is wrapped by the class ReportChartObject for insertion into a report. While it is recommended to insert charts using Designer, the following snippet can be used as a template for inserting charts via the API.
// Create ChartObject
ChartObject chartObj = new ChartObject(...); // Specify arguments for
constructor call
// Create ReportChartObject to wrap chartObj
ReportChartObject reportChartObject = new ReportChartObject();
// Change chartObj properties
...
// Wrap reportChartObject around chartObj
reportChartObject.setChart(chartObj);
The ReportChartObject is then added to a report section. For example,
report.getTableFooter().addData(reportChartObject);
| Fields inherited from class quadbase.ChartAPI.QbChart |
OLAPDATA_CONCATENATELABEL, OLAPDATA_DIRECT, OLAPDATA_TRANSPOSECOLBREAK, VIEW2D, VIEW3D |
| Fields inherited from interface quadbase.util.IChartTypeConstants |
AREA, BAR, BOX, BUBBLE, CHARTTYPENAME, COL, COMBO_COL, COMBO_LINE, COMBO_OVERLAY, COMBO_STACKAREA, COMBOTYPENAME, DIAL, GANTT, HILOW, HLCO, HTMLCENTER, HTMLHORIZONTAL, HTMLLEFT, HTMLRIGHT, HTMLVERTICAL, LINE, OVERLAY, PERCENTCOL, PIE, POLAR, RADAR, SCATTER, STACKAREA, STACKBAR, STACKCOL, SURFACE, TOTALTYPE, TOTALTYPE_2D, TOTALTYPE_3D, XYCHART |
| Fields inherited from interface quadbase.ChartAPI.IExportConstants |
BMP, CHT, CHT_DATA, COMMA, FLASH, GIF, GIF_C, GIF_N, GIF_R, JPEG, JPEG_C, PDF, PNG, PNG_COMPRESSION_DEFAULT, PNG_COMPRESSION_FAST, PNG_COMPRESSION_MAX, PNG_COMPRESSION_NONE, SEMICOLON, SPACE, SVG, TPL, TXTFORMAT, VRML, WMF, XMLFORMAT |
| Constructor Summary | |
ChartObject(java.lang.Object chartInfo)
Using chartInfo to create ChartObject. |
|
ChartObject(QbReport qbReport,
int dimension,
int chartType,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
Create an instance of ChartObject that can embedded in a ReportChartObject, which can be used to insert this chart into a report. |
|
ChartObject(QbReport qbReport,
int dimension,
int chartType,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template,
quadbase.reportdesigner.ReportElements.ReportTableElement panel)
Creates an instance of ChartObject that can be embedded in a ReportChartObject, which can be used to insert this chart into a report. |
|
ChartObject(QbReport qbReport,
int dimension,
int chartType,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template,
quadbase.reportdesigner.ReportElements.ReportTableElement panel,
boolean useSummaryData)
Creates an instance of ChartObject that can be embedded in a ReportChartObject, which can be used to insert this chart into a report. |
|
| Method Summary | |
static ChartObject |
createChartObject(QbReport report,
java.lang.String templateFileName)
Method to create a new ChartObject that does NOT using report section Aggregation data. |
static ChartObject |
createChartObject(QbReport report,
java.lang.String templateFileName,
ReportSection panel)
Creates a ChartOject in a specific ReportSection. |
| Constructor Detail |
public ChartObject(QbReport qbReport,
int dimension,
int chartType,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
qbReport - the parent QbReport objectdimension - either a 2D, or 3D chart.
Can be either ChartObject.VIEW2D, or ChartObject.VIEW3DchartType - the type of chart desired.
Please see IChartTypeConstants.doTransposeData - whether to transpose data prior to plotting.transposeCol - the indices of the columns to be transposedcmap - the column mapping to use. If using ReportData, values
should correspond to ReportTable column indices.template - the chart template file, ".tpl" to use for look & feel.
public ChartObject(QbReport qbReport,
int dimension,
int chartType,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template,
quadbase.reportdesigner.ReportElements.ReportTableElement panel)
qbReport - the parent QbReport objectdimension - either a 2D, or 3D chart.
Can be either ChartObject.VIEW2D, or ChartObject.VIEW3DchartType - the type of chart desired.
Please see IChartTypeConstants.doTransposeData - whether to transpose data prior to plotting.transposeCol - the indices of the columns to be transposedcmap - the column mapping to use. If using ReportData, values
should correspond to ReportTable column indices.panel - reportSection/ reportTable element, target sectiontemplate - the chart template file, ".tpl" to use for look & feel.
public ChartObject(QbReport qbReport,
int dimension,
int chartType,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template,
quadbase.reportdesigner.ReportElements.ReportTableElement panel,
boolean useSummaryData)
qbReport - the parent QbReport objectdimension - either a 2D, or 3D chart.
Can be either ChartObject.VIEW2D, or ChartObject.VIEW3DchartType - the type of chart desired.
Please see IChartTypeConstants.doTransposeData - whether to transpose data prior to plotting.transposeCol - the indices of the columns to be transposedcmap - the column mapping to use. If using ReportData, values
should correspond to ReportTable column indices.template - the chart template file, ".tpl" to use for look & feel.panel - reportSection/ reportTable element, target sectionuseSummaryData - for fixed-field crossTab report only - create summary chartpublic ChartObject(java.lang.Object chartInfo)
| Method Detail |
public static ChartObject createChartObject(QbReport report,
java.lang.String templateFileName)
This method is currently only used in the QuickDesigner to edit the chart inside the report.
public static ChartObject createChartObject(QbReport report,
java.lang.String templateFileName,
ReportSection panel)
report - the main report that holding the chart objecttemplateFileName - The chart template applicable to the report
column settingspanel - the report section where the chart is to be inserted. If
this parameter is set to null, it won't use any section data
and the chart can be put in any section of the report
|
EspressReport v 6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||