|
EspressReport v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--quadbase.ChartAPI.swing.QbChartPanel
|
+--quadbase.ChartAPI.swing.QbChartBasic
|
+--quadbase.ChartAPI.swing.QbChart
This class creates a chart object which extends java.awt.Component. Associated with this component, is an elobarate Java API that is contained in the quadbase.util and this (quadbase.ChartAPI.swing) package. Several chart types (and their combinations) are available, as enumerated in the interface quadbase.util.IChartTypeConstants. Both two and three dimensional charts are supported.
To create a new chart, a user must specify the chart type, the dimension (2D or 3D), the input data source information, and a mapping of the data columns to the respective axes. If the chart is used in an applet, the applet handle must also be specified. Data may be obtained either from a database, a data file, or directly as arguments. An optional chart template may be provided for specifying attributes. A chart can also be loaded from a CHT or TPL file (see below).
For persistence, a chart may be exported to either a proprietary CHT format, a template (TPL) format, or any of the common image formats (including BMP, GIF, JPEG, PNG and VRML). The format contants are enumerated in the interface IExportContants. A chart object can be re-created from a CHT or TPL format. A CHT format contains all chart information including the data used therein. A TPL format contains all chart attributes except the data itself, which is reloaded from the original data source at the time of creation. In addition, this class supports serialization by implementing the java.io.Externalizable interface.
In its default mode, a chart component uses the services of a chart server in order to read and write files. The chart server additionally provides access to native libraries for faster image export. This is especially necessary when the chart is being used within an applet, in which case direct read/write access to files may be disabled for security reasons, and ODBC drivers (if any) are unavailable on the client. The chart server is located (by an IP address and socket port) using a file called "server.cfg", which is assumed to exist in the same directory as the code base of the applet, or the current directory of the application.
A chart can also be configured to run without the help of a chart server (using the method setChartServerUsed(boolean)). This mode can be used in an application, where there are no security restrictions for direct file I/O and database access. In such a case, the chart attempts to read and write files, and load database drivers directly.
Hundreds of chart properties can be specified. In order to facilitate use, the most properties have been categorized into groups and exposed in the form of interfaces. An application may first obtain a handle to a group interface using a gethXXX method, and then manipulate the chart's properties directly by calling methods on this interface. (See the quadbase.util package documentation for details on the interfaces.) For example, the following code sets the chart's title, and changes its background color :
import java.applet.Applet;
import java.awt.*;
import quadbase.ChartAPI.swing.QbChart;
import quadbase.util.*;
public class MyChartApplet extends Applet {
QbChart chart;
public void init() {
// Load an existing chart from a CHT file
chart = new QbChart(this, "help/examples/data/col2d.cht");
// Get a handle to the title
ITextString title = chart.gethMainTitle();
// Call methods on the handle to change title
title.setValue("New Title");
// Get a handle to the ICanvas interface and change background color
chart.gethCanvas().setBackgroundColor(Color.white);
setLayout(new BorderLayout());
add("Center", chart);
}
}
(Note that the old setProp and getProp methods have been removed.) A chart may be repainted by calling the repaint() method once any of its properties are changed. Also, the chart data may be reloaded from the data source by calling its refresh() method.
The chart component is also available as a JavaBean.
Note : File names may be specified either as URL strings, or using relative/ absolute paths. Path names are interpreted as being relative to the current directory of the chart server (if used), or the current application (if server not used).
| Inner classes inherited from class quadbase.ChartAPI.swing.QbChartBasic |
QbChartBasic.CAxisRuler, QbChartBasic.CDataTopLabel, QbChartBasic.CDataTopLabel2, QbChartBasic.CMainTitle, QbChartBasic.CNoDataToPlotMessage, QbChartBasic.ControlPanel |
| Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
static int |
OLAPDATA_CONCATENATELABEL
|
static int |
OLAPDATA_DIRECT
|
static int |
OLAPDATA_TRANSPOSECOLBREAK
|
static int |
VIEW2D
2D chart |
static int |
VIEW3D
3D chart |
| Fields inherited from class quadbase.ChartAPI.swing.QbChartBasic |
chart, forExportOnly, root |
| Fields inherited from class quadbase.ChartAPI.swing.QbChartPanel |
listener |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| 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.swing.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 |
| Fields inherited from interface quadbase.util.IMapConstants |
CATEGORY, CLOSE, END_DATE, HIGH, LOW, OPEN, SCATTER_X, SCATTER_Y, SCATTER_Z, SECONDARY_SERIES, SECONDARY_VALUE, SERIES, START_DATE, SUB_TASK, SUMBY, TASK, VALUE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|
QbChart()
Create a new chart. |
|
QbChart(java.applet.Applet applet,
byte[] chartData)
Create a QbChart object from a byte array that is obtained by the exportChartToByteArray method in this class. |
|
QbChart(java.applet.Applet applet,
byte[] chartData,
boolean template)
|
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
DataSheet[] dataSheet,
boolean doTransposeData,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
DataSheet[] dataSheet,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
EJBInfo ejbInfo,
IColumnMap cmap,
java.lang.String template)
Create a QbChart object using the specified EJbInfo object |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
boolean doTransposeData,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension, and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension, and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
IColumnMap cmap)
Create a new chart with specific chart type and dimension. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension, and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
int fileType,
java.lang.String filename,
boolean doTransposeData,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension, and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
int fileType,
java.lang.String filename,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension, and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IOLAPResultSet olapRS,
int inputMethod,
IColumnMap cmap,
java.lang.String template,
boolean doTransposeData,
boolean[] transposeCol)
|
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IResultSet data,
boolean doTransposeData,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IResultSet data,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IResultSet data,
IColumnMap cmap)
Deprecated. Please use the constructor having a template as its last argument. Then use null as the last argument. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IResultSet data,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
ISpreadSheetModel sheet,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the chart type, dimension and a template. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String dataFile,
boolean doTransposeData,
IColumnMap cmap,
java.lang.String template)
Deprecated. Please use the constructor having a file type argument before dataFile argument. Use either QbChart.DATAFILE or QbChart.QUERYFILE as the file type. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String dataFile,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
Deprecated. Please use the constructor having a file type argument before dataFile argument. Use either QbChart.DATAFILE or QbChart.QUERYFILE as the file type. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String dataFile,
IColumnMap cmap)
Deprecated. Please use the constructor having a template as its last argument. Then use null as the last argument. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String dataFile,
IColumnMap cmap,
java.lang.String template)
Deprecated. Please use the constructor having a file type argument before dataFile argument. Use either QbChart.DATAFILE or QbChart.QUERYFILE as the file type. |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String connectionString,
java.lang.String MDXQuery,
int inputMethod,
IColumnMap cmap,
java.lang.String template,
boolean doTransposeData,
boolean[] transposeCol)
|
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String uri,
java.lang.String datasource,
java.lang.String catalog,
java.lang.String MDXQuery,
int inputMethod,
IColumnMap cmap,
java.lang.String template,
boolean doTransposeData,
boolean[] transposeCol)
|
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String jndiName,
java.lang.String homeName,
java.lang.String remoteName,
java.lang.String selectedMethodName,
java.lang.Object[] selectedMethodParamVal,
java.util.Hashtable environment,
IColumnMap cmap,
java.lang.String template,
boolean doTransposeData,
boolean[] transposeCol)
|
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String jndiName,
java.lang.String homeName,
java.lang.String remoteName,
java.lang.String selectedMethodName,
java.lang.Object[] selectedMethodParamVal,
IColumnMap cmap,
java.lang.String template)
Create a QbChart object by providing the following information of the EJb component: JNDI lookup name, home interface name, remote interface name selected home method, and input parameters for the selected method |
|
QbChart(java.applet.Applet applet,
int dimension,
int chartType,
XMLFileQueryInfo xmlInfo,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the xml information. |
|
QbChart(java.applet.Applet applet,
java.lang.String fileName)
Create a new chart using a CHT/TPL chart file. |
|
QbChart(java.applet.Applet applet,
java.lang.String fileName,
java.lang.Object req)
Create a QbChart object from an "tpl" or "rpt" file with parameterized query. |
|
QbChart(java.applet.Applet applet,
java.lang.String fileName,
java.lang.Object[] parameter)
|
|
QbChart(java.applet.Applet applet,
java.lang.String fileName,
java.lang.Object[] parameter,
boolean isEnterpriseServer)
|
protected |
QbChart(boolean forReport)
|
|
QbChart(quadbase.chart.Chart chart)
|
|
QbChart(java.awt.Frame frame,
int dimension,
int chartType,
EJBInfo ejbInfo,
IColumnMap cmap,
java.lang.String template)
Create a QbChart object using the specified EJbInfo object |
|
QbChart(java.awt.Frame frame,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
IColumnMap cmap)
Deprecated. Please use the constructor having the applet parameter. Use "(Applet) null" as the first argument |
|
QbChart(java.awt.Frame frame,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
IColumnMap cmap,
java.lang.String template)
Deprecated. Please use the constructor having the applet parameter. Use "(Applet) null" as the first argument. |
|
QbChart(java.awt.Frame frame,
int dimension,
int chartType,
IResultSet data,
IColumnMap cmap)
Deprecated. Please use the constructor having the applet parameter. Use "(Applet) null" as the first argument. |
|
QbChart(java.awt.Frame frame,
int dimension,
int chartType,
IResultSet data,
IColumnMap cmap,
java.lang.String template)
Deprecated. Please use the constructor having the applet parameter. Use "(Applet) null" as the first argument. |
|
QbChart(java.awt.Frame frame,
int dimension,
int chartType,
java.lang.String dataFile,
IColumnMap cmap)
Deprecated. Please use the constructor having a template as its last argument. Then use null as the last argument. |
|
QbChart(java.awt.Frame frame,
int dimension,
int chartType,
java.lang.String dataFile,
IColumnMap cmap,
java.lang.String template)
Deprecated. Please use the constructor having the applet parameter. Use "(Applet) null" as the first argument. |
|
QbChart(java.awt.Frame frame,
int dimension,
int chartType,
java.lang.String jndiName,
java.lang.String homeName,
java.lang.String remoteName,
java.lang.String selectedMethodName,
java.lang.Object[] selectedMethodParamVal,
IColumnMap cmap,
java.lang.String template)
Create a QbChart object by providing the following information of the EJb component: JNDI lookup name, home interface name, remote interface name selected home method, and input parameters for the selected method |
|
QbChart(java.awt.Frame frame,
int dimension,
int chartType,
XMLFileQueryInfo xmlInfo,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
Create a new chart, given the xml information. |
|
QbChart(java.awt.Frame frame,
java.lang.String fileName)
Deprecated. Please use the constructor having the applet parameter. Use "(Applet) null" as the first argument. |
|
QbChart(java.awt.Frame frame,
java.lang.String fileName,
java.lang.Object req)
Create a QbChart object from an "tpl" or "rpt" file with parameterized query. |
|
QbChart(QbChart qbchart)
Create a new chart using an existing chart object. |
| Method Summary | |
void |
applyAntiAliasToChatAreaOnly(boolean b)
|
void |
applyTemplateFile(java.lang.String fileName)
Applies the given template to the current chart. |
DrillDownChart |
createDrillDownChart(java.lang.String name,
int chartDim,
int chartType,
IDatabaseInfo dbInfo,
boolean doTransposeData,
int[] transposeCol,
IColumnMap mapping,
java.lang.String template,
int[] columnMapping)
Create a drill-down chart that will be an immediate child of the calling chart |
void |
draw(java.awt.Graphics g,
java.awt.Component component,
int width,
int height)
This method draws the chart given a Graphics object. |
java.awt.Image |
export()
Exports the chart to an image Object. |
void |
export(int format,
java.io.OutputStream out)
Export the chart |
void |
export(int format,
java.io.OutputStream out,
int w,
int h)
Export the chart |
void |
export(int format,
java.io.OutputStream out,
int w,
int h,
int option)
Export the chart |
void |
export(int format,
java.io.OutputStream image,
java.io.OutputStream subFile,
java.lang.String fileName,
int w,
int h,
boolean generateSubFile,
int option)
Export the chart |
void |
export(int format,
java.io.OutputStream image,
java.io.OutputStream subFile,
java.lang.String filename,
java.lang.String chartLocation,
int w,
int h,
java.lang.String servletLoc,
PickData[] pickData,
java.lang.String[] argv,
int option)
Export the chart with drill down map |
void |
export(int format,
java.lang.String filename)
Export the chart with dimensions equal to that of the current chart. |
void |
export(int format,
java.lang.String filename,
int w,
int h)
Export the chart |
void |
export(int format,
java.lang.String filename,
int w,
int h,
int option)
Export the chart |
void |
export(int format,
java.lang.String filename,
java.lang.String subFilename)
Export the chart with dimensions equal to that of the current chart. |
void |
export(int format,
java.lang.String filename,
java.lang.String subFilename,
int w,
int h)
Export the chart |
void |
export(int format,
java.lang.String filename,
java.lang.String subFilename,
int w,
int h,
boolean generateSubFile)
Export the chart |
void |
export(int format,
java.lang.String filename,
java.lang.String subFilename,
int w,
int h,
boolean generateSubFile,
int option)
Export the chart |
void |
export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
int w,
int h,
java.lang.String servletLoc)
Export the chart with drill down map (top level only) |
void |
export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
int w,
int h,
java.lang.String servletLoc,
PickData[] pickData)
Export the chart with drill down map |
void |
export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
int w,
int h,
java.lang.String servletLoc,
PickData[] pickData,
java.lang.String[] argv)
Export the chart with drill down map |
void |
export(int format,
java.lang.String filename,
java.lang.String chartLocation,
int w,
int h,
java.lang.String servletLoc,
PickData[] pickData,
java.lang.String[] argv,
int option)
Export the chart with drill down map |
void |
export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
int w,
int h,
java.lang.String servletLoc,
java.lang.String[] argv)
Export the chart with drill down map (top level only) |
void |
export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
java.lang.String servletLoc)
Export the chart with drill down map (top level only) |
void |
export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
java.lang.String servletLoc,
PickData[] pickData)
Export the chart with drill down map |
byte[] |
exportChartToByteArray()
Exports the chart to byte array. |
byte[] |
exportChartToByteArray(boolean template)
|
java.lang.String |
exportChartToString()
Exports the chart to String object which can use any chart viewer to re-open it again. |
void |
exportDataFile(java.io.PrintStream out,
int separator,
int format)
Export Data File |
void |
exportDataFile(java.lang.String fileName,
int separator,
int format)
Export Data File |
protected void |
finalize()
|
java.applet.Applet |
getApplet()
Return applet |
java.lang.Object |
getArgument()
Get the argument of the event, PickData if data is selected or String which describes the object otherwise |
int |
getBufferedImageType()
Returns java.awt.image.BufferedImage image type Note this method only works with JDK 1.2 or above |
IChartGraphics |
getChartGraphics()
return chart graphics object |
int |
getDimension()
Returns the dimension (2D or 3D) of the chart. |
DrillDownChart |
getDrillDownChart(java.lang.String name)
Return the drill-down chart with the matching name |
DrillDownChart |
getDrillDownChartAt(int index)
Return the drill-down chart at the specific index |
int |
getDrillDownChartCount()
The number of drill-down charts immediately accessible |
java.lang.String |
getErrorMessage()
Return error message from the constructor of QbChart |
java.lang.String |
getFile()
Returns the name of the (CHT or TPL) file from which the chart is loaded. |
static int |
getFileRecordBufferSize()
get the number of record to store on disk at a time when using record file data to generate the report |
I3DControlPanel |
geth3DControlPanel()
Returns a handle to properties of the 3D control panel. |
I3DPropertySet |
geth3DProperties()
Returns a handle to properties specific to a 3D chart. |
IAnnotationSet |
gethAnnotations()
Returns a handle to the set of annotations. |
IAxis |
gethAxis(int idx)
Returns a handle to the set of Axis properties for radar or overlay. |
IBoxPropertySet |
gethBoxProperties()
Returns a handle to the 2D box chart property interface. |
IBubblePropertySet |
gethBubbleProperties()
Returns a handle to the bubble chart property interface. |
ICanvas |
gethCanvas()
Returns a handle to the chart canvas properties. |
IPlot |
gethChartPlot()
Returns a handle to the chart plot area. |
IControlRangeSet |
gethControlRanges()
Returns a handle to the set of control ranges. |
IDataLineSet |
gethDataLines()
Returns a handle to the set of data lines. |
IDataPointSet |
gethDataPoints()
Returns a handle to the chart data point properties interface. |
IDialPropertySet |
gethDialProperties()
Returns a handle to the 2D dial chart property interface. |
IDoughnutPropertySet |
gethDoughnutProperties()
Returns a handle to the doughnut chart property interface. |
IDrillDown |
gethDrillDown()
Returns a handle to the Drill-Down interface. |
IDropBarSet |
gethDropBars()
Returns a handle to the set of drop bar. |
IFloatingLineSet |
gethFloatingLines()
Returns a handle to the set of free floating line on the chart canvas. |
IFloatingTextSet |
gethFloatingText()
Returns a handle to the set of free floating text on the chart canvas. |
IGanttPropertySet |
gethGanttProperties()
Returns a handle to the 2D Gantt chart property interface. |
IHistogramInfo |
gethHistogramInfo()
Returns a handle to the histogram property interface. |
IHyperLinkSet |
gethHyperLinks()
Returns a handle to the set of hyperlink properties. |
IInputData |
gethInputData()
Returns a handle to the chart's input data properties, including file or database information, and accessing individual records. |
ILegend |
gethLegend()
Returns a handle to the set of legend properties. |
ILinePropertySet |
gethLineProperties()
Returns a handle to the 2D line chart property interface. |
ITextString |
gethMainTitle()
Returns a handle to the chart's main title. |
IMouseEventSet |
gethMouseEvents()
Returns a handle to the mouse event customization interface. |
INoDataToPlotMessage |
gethNoDataToPlotMessage()
Returns a handle to the no data to plot message property interface. |
IOverlayPropertySet |
gethOverlayProperties()
Returns a handle to the 2D overlay chart property interface. |
IPiePropertySet |
gethPieProperties()
Returns a handle to the pie chart property interface. |
IPolarPropertySet |
gethPolarProperties()
Returns a handle to the 2D polar chart property interface. |
IPopupMenu |
gethPopupMenu()
Returns a handle to the popup menu property interface for chartviewer. |
IRadarPropertySet |
gethRadarProperties()
Returns a handle to the 2D radar chart property interface. |
ISecondaryChart |
gethSecondaryChart()
Returns a handle to the secondary chart property interface. |
ISurfacePropertySet |
gethSurfaceProperties()
Returns a handle to the 3D surface chart property interface. |
ITable |
gethTable()
Return a handle to the Table interface Table can be designed by calling methods on this interface |
java.lang.String |
getHTMLParamPage(java.lang.String servletName)
Deprecated. use QbChart.getParameterPage(String, int, String) instead For parameterized chart, generate the html page for user to enter the paramters |
java.lang.String |
getHTMLParamPage(java.lang.String chartLoc,
int format,
java.lang.String servletName)
Deprecated. use QbChart.getParameterPage(String, int, String) instead For parameterized chart, generate the html page for user to enter the paramters |
java.lang.String |
getHTMLParamPageBlock()
Deprecated. use QbChart.getParameterPage(String, int, String) instead For parameterized chart, generate the html page body for user to enter the paramters |
java.lang.String |
getHTMLParamPageBody(java.lang.String servletName)
Deprecated. use QbChart.getParameterPage(String, int, String) instead For parameterized chart, generate the html page for user to enter the paramters |
java.lang.String |
getHTMLParamPageBody(java.lang.String chartLoc,
int format,
java.lang.String servletName)
Deprecated. use QbChart.getParameterPage(String, int, String) instead For parameterized chart, generate the html page for user to enter the paramters |
ITrendLineSet |
gethTrendLines()
Deprecated. Please use gethDataLines instead |
IAxis |
gethXAxis()
Returns a handle to the set of X Axis properties. |
IAxisRuler |
gethXRuler()
Returns a handle to the X axis ruler displayed on top of the chart canvas. |
IAxis |
gethYAxis()
Returns a handle to the set of Y Axis properties. |
IAxisRuler |
gethYRuler()
Returns a handle to the Y axis ruler displayed to the left of the chart canvas. |
IAxis |
gethZAxis()
Returns a handle to the set of Z Axis properties. |
IZoomInfo |
gethZoomInfo()
Returns a handle to the zoom property interface. |
ICustomizeImageMapDataHintBox |
getImageMapDataHintBoxHandle()
|
java.util.Locale |
getLocale()
Gets the locale of this component |
static int |
getMaxCharForRecordFile()
get max number of character for record in column when using record file to generate the report |
static int |
getMaxRecordInMemory()
get max number of record in memory when using record file to generate the report if value = -1, load everything in memory (default) |
int |
getModifier()
Return mouse modifier |
ChartParameterPage |
getParameterPage(java.lang.String chartLoc,
int format,
java.lang.String servletName)
Gets the ParameterPage for this report if and only if this is a Parameterized Report |
static int |
getPickDataCount(java.lang.String param)
get number of PickData in given drill-down link |
java.awt.Dimension |
getPreferredSize()
Overrides component getPreferredSize(). |
static int |
getQueryTimeout()
retrieves the number of seconds the driver will wait for a statement object to execute. |
static java.lang.String |
getServletContext()
return servlet context |
static java.lang.String |
getTempDirectory()
get temp directory for using record file to generate the report DEFAULT temp directory is "temp/" |
java.lang.String |
getTemplateFile()
Returns the name of the template applied to the current chart, if any. |
java.util.TimeZone |
getTimeZone()
Gets the time zone |
int |
getType()
Returns the type of the chart. |
static java.lang.String |
getUpdateVersion()
|
static java.lang.String |
getVersion()
Returns EspressChart Version Number |
boolean |
isAdjustFont()
Return whether adjust the font based on the screen resolution. |
boolean |
isBackgroundTransparent()
Returns whether a chart background is transparent when exporting a chart to GIF format |
boolean |
isBufferedImageUsed()
Returns whether the QbChart to use java.awt.image.BufferedImage technology to export image Note this method only works with JDK 1.2 or above |
static boolean |
isChartServerUsed()
Returns whether the chart server is used for input/output, If false, the package performs file and database reads/writes directly. |
boolean |
isDrawBorderForWMF()
Returns whether a chart border is visible when exporting a chart to WMF format This method is only for 2D column/bar chart |
static boolean |
isEspressManagerUsed()
Returns whether EspressManager is used for input/output. |
boolean |
isFieldDrillDownChart()
|
boolean |
isFieldDrillDownEnabled()
|
static boolean |
isForExportOnly()
Returns whether QbChart is optimized for exporting chart images |
boolean |
isHiLowAsCandleStick()
Returns true if a hi-low chart is to be displayed in the form of a candlestick chart. |
boolean |
isPrintKeyEnabled()
Returns true if accelerator keys are enabled to export a chart as an image in order to facilitate printing. |
boolean |
isRefreshEnabled()
Returns true if accelerator keys are enabled to refresh chart data If this option is enabled, hitting Ctrl-R (or use popup-menu) to refresh data |
void |
loadFile(java.lang.String fileName)
Loads the chart from the given CHT or TPL file. |
void |
readExternal(java.io.ObjectInput in)
This method provides support for reading serialized charts |
void |
refresh()
Reload the chart data from input database or data file. |
void |
repaintPanel()
This method repaints the viewpanel that contains a chart |
void |
setAddOnChart(QbChart[] qbCharts)
Customize chart graphics information or draw user specify component onto chart canvas |
void |
setAdjustFont(boolean state)
Specify whether should adjust the font based on the screen resolution. |
void |
setApplet(java.applet.Applet applet)
Set the applet containing this chart component. |
void |
setBackgroundTransparent(boolean b)
Set background color to transparent when exporting a chart to GIF format |
void |
setBufferedImageType(int imageType)
Sets java.awt.image.BufferedImage image type Note this method only works with JDK 1.2 or above |
void |
setBufferedImageUsed(boolean state)
Sets whether the QbChart to use java.awt.image.BufferedImage technology to export image Note this method only works with JDK 1.2 or above |
void |
setChartGraphics(IChartGraphics chartGraphics)
Customize chart graphics information or draw user specify component onto chart canvas |
static void |
setChartServerUsed(boolean b)
Use this to specify whether to use the chart server for input/output, or perform file and database reads/writes directly. |
static void |
setChartServerUsed(int num)
Use this to specify whether to use the chart server for input/output, or perform file and database reads/writes directly. |
static void |
setChartServerUsed(java.lang.String str)
Use this to specify whether to use the chart server for input/output, or perform file and database reads/writes directly. |
static void |
setConnectURLForServer(java.lang.String comm_url)
Set direct connect url for reverse proxy server Note: this static method MUST be called before any QbChart constructor |
static void |
setDebugMode(int mode)
set debug mode to display debug statement |
static void |
setDebugMode(java.lang.String mode)
set debug mode to display debug statement |
void |
setDimension(int d)
Sets the dimension (2D or 3D) of the chart. |
void |
setDrawBorderForWMF(boolean b)
Set chart border to visible when exporting a chart to WMF format This method is only for 2D column/bar chart |
void |
setDrillDownPath(java.lang.String path)
|
static void |
setEspressManagerUsed(boolean b)
Use this to specify whether to use EspressManager for input/output, or perform file and database reads/writes directly. |
static void |
setEspressManagerUsed(int num)
Use this to specify whether to use EspressManager for input/output, or perform file and database reads/writes directly. |
static void |
setEspressManagerUsed(java.lang.String str)
Use this to specify whether to use EspressManager for input/output, or perform file and database reads/writes directly. |
static void |
setFileRecordBufferSize(int r)
set the number of record to store on disk at a time when using record file data to generate the report (larger buffer results faster generating time) |
static void |
setForExportOnly(boolean state)
Sets whether the QbChart object is only used for exporting charts later. |
static void |
setGIFEnable(java.lang.String serialNumber,
java.lang.String key)
Sets whether the Qbchart can generate GIF or not |
void |
setHiLowAsCandleStick(boolean b)
This function is used to display a HLCO chart in the form of a candlestick chart, depending on the value of parameter b. |
void |
setImageMapDataHintBoxHandle(ICustomizeImageMapDataHintBox val)
|
void |
setLocale(java.util.Locale locale)
Sets the locale of this component |
static void |
setMaxCharForRecordFile(int r)
set max number of character for record in column when using record file to generate the report |
static void |
setMaxRecordInMemory(int r)
set max number of record in memory when using record file to generate the report if value = -1, load everything in memory (default) |
void |
setOpaque(boolean isOpaque)
Sets the opaque of this component (for swing version only) |
void |
setPanelBorder(java.lang.Object border)
Sets the border of this component (for swing version only) |
void |
setParamPageAlignment(int alignment)
Deprecated. use QbChart.getParameterPage(String,int,String).setAlignment(int) instead Set the alignment of the form of the parameter HTML page |
void |
setParamPageBackgroundColor(java.lang.String color)
Deprecated. use QbChart.getParameterPage(String,int,String).setTableBackgroundColor(String) instead Set the parameter HTML page background color as hex number |
void |
setParamPageBorderColor(java.awt.Color color)
Deprecated. use QbChart.getParameterPage(String,int,String).setTableBorderColor(Color) instead Set the parameter page border color as Color object |
void |
setParamPageBorderColor(java.lang.String color)
Deprecated. use QbChart.getParameterPage(String,int,String).setTableBorderColor(String) instead Set the parameter page border color as hex value |
void |
setParamPageBorderThickness(int thickness)
Deprecated. use QbChart.getParameterPage(String,int,String).setTableBorderThickness(int) instead Set the border thickness of the parameter HTML page |
void |
setParamPageFooter(java.lang.String footer)
Deprecated. use QbChart.getParameterPage(String,int,String).setFooter(String) instead Set the parameter HTML page footer |
void |
setParamPageHeader(java.lang.String header)
Deprecated. use QbChart.getParameterPage(String,int,String).setHeader(String) instead Set the parameter HTML page header |
void |
setParamPageLayout(int layout)
Deprecated. use QbChart.getParameterPage(String,int,String).setTableLayout(int) instead Set the layout of the form of the parameter HTML page |
void |
setParamPageOuterBorder(boolean state)
Deprecated. use QbChart.getParameterPage(String,int,String).setTableOuterBorderOnly(boolean) instead Whether only show the outer border of the form of the parameter HTML page |
void |
setParamPageResetEnabled(boolean state)
Deprecated. use QbChart.getParameterPage(String,int,String).setResetEnabled(boolean) instead Whether enable the reset button in the form of the parameter HTML page |
void |
setParamPageTextFontColor(java.awt.Color color)
Deprecated. use QbChart.getParameterPage(String,int,String).setTextColor(Color) instead Set the parameter page text font color as Color object |
void |
setParamPageTextFontColor(java.lang.String color)
Deprecated. use QbChart.getParameterPage(String,int,String).setTextColor(String) instead Set the parameter HTML page text font color as hex value |
void |
setParamPageTextFontName(java.lang.String name)
Deprecated. use QbChart.getParameterPage(String,int,String).setTextFont(String) instead Set the parameter HTML page text font name |
void |
setParamPageTextFontSize(int size)
Deprecated. use QbChart.getParameterPage(String,int,String).setTextSize(int) instead Set the parameter HTML page text font size |
void |
setParamPageTextFontStyle(int style)
Deprecated. use QbChart.getParameterPage(String,int,String).setTextStyle(int) instead Set the parameter page text font style |
void |
setParamPageTitle(java.lang.String title)
Deprecated. use QbChart.getParameterPage(String,int,String).setDocumentTitle(String) instead Set the parameter HTML page title |
void |
setParamPageTitleFontColor(java.awt.Color color)
Deprecated. use QbChart.getParameterPage(String,int,String).setTitleTextColor(Color) instead Set the paramter HTML page title font color as Color object |
void |
setParamPageTitleFontColor(java.lang.String color)
Deprecated. use QbChart.getParameterPage(String,int,String).setTitleTextColor(String) instead Set the parameter HTML page title font color as hex number |
void |
setParamPageTitleFontName(java.lang.String name)
Deprecated. use QbChart.getParameterPage(String,int,String).setTitleTextFont(String) instead Set the paramter HTML page title font name |
void |
setParamPageTitleFontSize(int size)
Deprecated. use QbChart.getParameterPage(String,int,String).setTitleTextSize(int) instead set the parameter HTML page title font size |
void |
setParamPageTitleFontStyle(int style)
Deprecated. use QbChart.getParameterPage(String,int,String).setTitleTextStyle(int) instead Set the parameter HTML page title font style |
void |
setPreferredSize(java.awt.Dimension d)
Set the preferred size for this component. |
void |
setPrintKeyEnabled(boolean b)
This function is used to enable accelerator keys to export a chart as an image in order to facilitate printing. |
static void |
setQueryTimeout(int seconds)
Sets the number of seconds the driver will wait for a statement object to execute to the given number of seconds |
void |
setRefreshEnabled(boolean b)
This function is used to enable accelerator keys to refresh chart data If this option is enabled, hitting Ctrl-R (or use popup-menu) to refresh data. |
void |
setRenderingHint(java.lang.Object hintKey,
java.lang.Object hintValue)
Sets the value of a single preference for the rendering algorithms. |
static void |
setScrollBarOption(int option)
Deprecated. This method is no longer existed. Please see quadbase.util.ICanvas.setScrollBarOption |
static void |
setServerAddress(java.lang.String address)
Set the server address of EspressManager. |
static void |
setServerHosts(java.util.Vector hostnames)
Set the list of host names for EspressManager when tunneling is used. |
static void |
setServerPortNumber(int port)
Set the port number of EspressManager. |
static void |
setServletContext(java.lang.String context)
|
static void |
setServletRunner(java.lang.String comm_url)
Set servlet runner hostname and port number Note: this static method MUST be called before any QbChart constructor |
void |
setStringCustomizer(IStringCustomizer stringCustomizer)
This is the API call for the user to pass into user implemented IStringCustomizer for displaying specific characters, for example, Japanese characters. |
static void |
setTempDirectory(java.lang.String str)
set temp directory for using record file to generate the report DEFAULT temp directory is "temp/" |
void |
setTimeZone(java.util.TimeZone zone)
Sets the time zone |
void |
setType(int type)
Sets the type of the chart. |
static void |
setUseSingleTableForDistinctParamValue(boolean state)
This is for database query parameter that is mapped to database column only. |
static PickData[] |
toPickData(java.lang.String param)
convert drill-down link "PARAM" to PickData[] |
void |
updateDrillDownCharts()
|
static void |
useHttp(boolean b)
Determines whether to use SOCKET or HTTP for chart server connection Note that this static method MUST be called before any QbChart constructor. |
static void |
useServlet(boolean b)
Determines whether to use SOCKET or HTTP or SERVLET for chart server connection Note that this static method MUST be called before any QbChart constructor. |
static boolean |
useSingleTableForDistinctParamValue()
This is for database query parameter that is mapped to database column only. |
void |
writeExternal(java.io.ObjectOutput out)
This method provides support for writing serialized charts |
| Methods inherited from class quadbase.ChartAPI.swing.QbChartBasic |
actionPerformed, addKeyListener, addMouseListener, addMouseMotionListener, createChart, getChart, paint, paintAll, print, printAll, removeKeyListener, removeMouseListener, removeMouseMotionListener, setChartHolder, setViewPanel |
| Methods inherited from class quadbase.ChartAPI.swing.QbChartPanel |
addActionListener, fireEvent |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int VIEW2D
public static final int VIEW3D
public static final int OLAPDATA_TRANSPOSECOLBREAK
public static final int OLAPDATA_DIRECT
public static final int OLAPDATA_CONCATENATELABEL
| Constructor Detail |
public QbChart()
public QbChart(quadbase.chart.Chart chart)
public QbChart(java.applet.Applet applet,
java.lang.String fileName)
applet - the applet containing the chart. Use "(Applet) null" if
used within an application.fileName - name of the chart file (with a .cht or .tpl extension).
This can either be a URL, or a path name accessible by chart server (if the
server is used). In the latter case, the path name can be either absolute,
or relative to the current directory of the chart server.
public QbChart(java.applet.Applet applet,
java.lang.String fileName,
java.lang.Object[] parameter)
public QbChart(java.applet.Applet applet,
java.lang.String fileName,
java.lang.Object[] parameter,
boolean isEnterpriseServer)
public QbChart(java.awt.Frame frame,
java.lang.String fileName)
frame - a FramefileName - name of the chart file (with a .cht or .tpl extension).
This can either be a URL, or a path name accessible by chart server (if the
server is used). In the latter case, the path name be either be absolute,
or relative to the current directory of the chart server.
output by chart designer
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
IColumnMap cmap)
applet - the applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use constant VIEW2D or VIEW3D to specify
2D or 3D chartdbinfo - database information, see interface IDatabaseInfocmap - column information use to specify which column is
use to plot data, see interface IColumnMap for details
public QbChart(java.awt.Frame frame,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
IColumnMap cmap)
frame - a Framedimension - use constant VIEW2D or VIEW3D to specify
2D or 3D chartdbinfo - database information, see interface IDatabaseInfocmap - column information use to specify which column is
use to plot data, see interface IColumnMap for details
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdbinfo - database information, see interface IDatabaseInfocmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
boolean doTransposeData,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdbinfo - database information, see interface IDatabaseInfodoTransposeData - a flag denoting whether the input data has to be transposed
into a result set having three columns : RowLabel, ColumnLabel, and Value.cmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdbinfo - database information, see interface IDatabaseInfodoTransposeData - a flag denoting whether the input data has to be transposed
into a result settransposeCol - transposing selected columncmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.awt.Frame frame,
int dimension,
int chartType,
IDatabaseInfo dbinfo,
IColumnMap cmap,
java.lang.String template)
frame - a Framedimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdbinfo - database information, see interface IDatabaseInfocmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl)
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String dataFile,
IColumnMap cmap)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdataFile - source data file, see database file format for detailscmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for details
public QbChart(java.awt.Frame frame,
int dimension,
int chartType,
java.lang.String dataFile,
IColumnMap cmap)
frame - a Framedimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdataFile - source data file, see database file format for detailscmap - column information use to specify which column is
use to plot data, see interface IColumnMap for details
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
EJBInfo ejbInfo,
IColumnMap cmap,
java.lang.String template)
public QbChart(java.awt.Frame frame,
int dimension,
int chartType,
EJBInfo ejbInfo,
IColumnMap cmap,
java.lang.String template)
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String jndiName,
java.lang.String homeName,
java.lang.String remoteName,
java.lang.String selectedMethodName,
java.lang.Object[] selectedMethodParamVal,
IColumnMap cmap,
java.lang.String template)
public QbChart(java.awt.Frame frame,
int dimension,
int chartType,
java.lang.String jndiName,
java.lang.String homeName,
java.lang.String remoteName,
java.lang.String selectedMethodName,
java.lang.Object[] selectedMethodParamVal,
IColumnMap cmap,
java.lang.String template)
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String jndiName,
java.lang.String homeName,
java.lang.String remoteName,
java.lang.String selectedMethodName,
java.lang.Object[] selectedMethodParamVal,
java.util.Hashtable environment,
IColumnMap cmap,
java.lang.String template,
boolean doTransposeData,
boolean[] transposeCol)
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String connectionString,
java.lang.String MDXQuery,
int inputMethod,
IColumnMap cmap,
java.lang.String template,
boolean doTransposeData,
boolean[] transposeCol)
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String uri,
java.lang.String datasource,
java.lang.String catalog,
java.lang.String MDXQuery,
int inputMethod,
IColumnMap cmap,
java.lang.String template,
boolean doTransposeData,
boolean[] transposeCol)
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IOLAPResultSet olapRS,
int inputMethod,
IColumnMap cmap,
java.lang.String template,
boolean doTransposeData,
boolean[] transposeCol)
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String dataFile,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdataFile - source data file, see database file format for detailscmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String dataFile,
boolean doTransposeData,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdataFile - source data file, see database file format for detailsdoTransposeData - a flag denoting whether the input data has to be transposed
into a result set having three columns : RowLabel, ColumnLabel, and Value.cmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
java.lang.String dataFile,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdataFile - source data file, see database file format for detailsdoTransposeData - a flag denoting whether the input data has to be transposed
into a result settransposeCol - transpose selected columns from the original datacmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
int fileType,
java.lang.String filename,
boolean doTransposeData,
IColumnMap cmap,
java.lang.String template)
throws java.lang.Exception
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartfileType - use QbChart.DATAFILE or QbChart.QUERYFILEfilename - If fileType is QbChart.DATAFILE, the file is a source data file,
see database file format for details
If fileType is QbChart.QUERYFILE, the file is a query file
(with extension .qry)doTransposeData - a flag denoting whether the input data has to be transposed
into a result set having three columns : RowLabel, ColumnLabel, and Value.cmap - column information used to specify the column mappings
used to plot datatemplate - a template file (with extension .tpl). Use null if no
template is to be applied.IQueryFileInfo,
ISpreadSheetModel,
IColumnMap
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
int fileType,
java.lang.String filename,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
throws java.lang.Exception
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartfileType - use QbChart.DATAFILE or QbChart.QUERYFILEfilename - If fileType is QbChart.DATAFILE, the file is a source data file,
see database file format for details
If fileType is QbChart.QUERYFILE, the file is a query file
(with extension .qry)doTransposeData - a flag denoting whether the input data has to be transposed
into a result settransposeCol - transposing selected columns from the original data sourcecmap - column information used to specify the column mappings
used to plot datatemplate - a template file (with extension .tpl). Use null if no
template is to be applied.IQueryFileInfo,
ISpreadSheetModel,
IColumnMap
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
XMLFileQueryInfo xmlInfo,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
throws java.lang.Exception
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartxmlInfo - the XML information for plot the chartdoTransposeData - a flag denoting whether the input data has to be transposed
into a result settransposeCol - transposing selected columns from the original data sourcecmap - column information used to specify the column mappings
used to plot datatemplate - a template file (with extension .tpl). Use null if no
template is to be applied.ISpreadSheetModel,
IColumnMap
public QbChart(java.awt.Frame frame,
int dimension,
int chartType,
XMLFileQueryInfo xmlInfo,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
throws java.lang.Exception
frame - a Framedimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartxmlInfo - the XML information for plot the chartdoTransposeData - a flag denoting whether the input data has to be transposed
into a result settransposeCol - transposing selected columns from the original data sourcecmap - column information used to specify the column mappings
used to plot datatemplate - a template file (with extension .tpl). Use null if no
template is to be applied.ISpreadSheetModel,
IColumnMap
public QbChart(java.awt.Frame frame,
int dimension,
int chartType,
java.lang.String dataFile,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use null if used
within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdataFile - source data file, see database file format for detailscmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl).
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IResultSet data,
IColumnMap cmap)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdata - source data to plot chart, see IResultSet for details.cmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for details
public QbChart(java.awt.Frame frame,
int dimension,
int chartType,
IResultSet data,
IColumnMap cmap)
frame - A Framedimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdata - source data to plot chart, see IResultSet for details.cmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for details
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IResultSet data,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdata - source data to plot chart, see IResultSet for details.cmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IResultSet data,
boolean doTransposeData,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdata - source data to plot chart, see IResultSet for details.doTransposeData - a flag denoting whether the input data has to be transposed
into a result set having three columns: RowLabel, ColumnLabel, and Value.cmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
IResultSet data,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdata - source data to plot chart, see IResultSet for details.doTransposeData - a flag denoting whether the input data has to be transposed
into a result set having three columns: RowLabel, ColumnLabel, and Value.transposeCol - transposing selected column from the original datacmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.awt.Frame frame,
int dimension,
int chartType,
IResultSet data,
IColumnMap cmap,
java.lang.String template)
frame - A Framedimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdata - source data to plot chart, see IResultSet for details.cmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for details
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
ISpreadSheetModel sheet,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartsheet - source data model for the chart, see ISpreadSheetModel
for details.cmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
DataSheet[] dataSheet,
boolean doTransposeData,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdataSheet - source data to plot chart, see DataSheet for details.doTransposeData - a flag denoting whether the input data has to be transposed
into a result set having three columns: RowLabel, ColumnLabel, and Value.cmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.
public QbChart(java.applet.Applet applet,
int dimension,
int chartType,
DataSheet[] dataSheet,
boolean doTransposeData,
int[] transposeCol,
IColumnMap cmap,
java.lang.String template)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.dimension - use QbChart.VIEW2D or QbChart.VIEW3D to specify
2D or 3D chartdataSheet - source data to plot chart, see DataSheet for details.doTransposeData - a flag denoting whether the input data has to be transposed
into a result set having three columns: RowLabel, ColumnLabel, and Value.transposeCol - transpose selected object from the original datacmap - column information used to specify the column mappings
used to plot data, see interface IColumnMap for detailstemplate - a template file (with extension .tpl). Use null if no
template is to be applied.public QbChart(QbChart qbchart)
qbchart - an existing chart
public QbChart(java.applet.Applet applet,
byte[] chartData)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.chartData - a byte array containing a QbChart object.
public QbChart(java.applet.Applet applet,
byte[] chartData,
boolean template)
protected QbChart(boolean forReport)
public QbChart(java.awt.Frame frame,
java.lang.String fileName,
java.lang.Object req)
frame - a frame *fileName - location & name of the chart file to usereq - If the chart has a parameterized query, use this HTTPRequestObject to get parameters
public QbChart(java.applet.Applet applet,
java.lang.String fileName,
java.lang.Object req)
applet - an applet containing the chart. Use "(Applet) null" if
used within an application.fileName - location & name of the chart file to usereq - If the chart has a parameterized query, use this HTTPRequestObject to get parameters| Method Detail |
public static final void setDebugMode(int mode)
public static final void setDebugMode(java.lang.String mode)
public final boolean isBackgroundTransparent()
quadbase.chartAPI.QbChart.setBackgroundTransparent()public final void setBackgroundTransparent(boolean b)
b - set background to transparent, true or falsequadbase.chartAPI.QbChart.isBackgroundTransparent()public final boolean isDrawBorderForWMF()
quadbase.chartAPI.QbChart.setDrawBorderForWMF()public final void setDrawBorderForWMF(boolean b)
b - set chart border to visible, true or falsequadbase.chartAPI.QbChart.isDrawBorderForWMF()public final void setChartGraphics(IChartGraphics chartGraphics)
chartGraphics - Chart Graphics Objectquadbase.util.IChartCanvaspublic final void setAddOnChart(QbChart[] qbCharts)
chartGraphics - Chart Graphics Objectquadbase.util.IChartCanvaspublic final void setStringCustomizer(IStringCustomizer stringCustomizer)
stringCustomizer - chart IStringCustomizer objectinterface
public void setRenderingHint(java.lang.Object hintKey,
java.lang.Object hintValue)
Here is a list of the available keys and values from the java.awt.RenderingHints class:
Keys Values
KEY_ANTIALIASING VALUE_ANTIALIASING_ON
VALUE_ANTIALIASING_OFF
VALUE_ANTIALIASING_DEFAULT
KEY_ALPHA_INTERPOLATION VALUE_ALPHA_INTERPOLATION_DEFAULT
VALUE_ALPHA_INTERPOLATION_QUALITY
VALUE_ALPHA_INTERPOLATION_SPEED
KEY_COLOR_RENDERING VALUE_COLOR_RENDER_DEFAULT
VALUE_COLOR_RENDER_QUALITY
VALUE_COLOR_RENDER_SPEED
KEY_DITHERING VALUE_DITHER_DEFAULT
VALUE_DITHER_DISABLE
VALUE_DITHER_ENABLE
KEY_FRACTIONALMETRICS VALUE_FRACTIONALMETRICS_DEFAULT
VALUE_FRACTIONALMETRICS_OFF
VALUE_FRACTIONALMETRICS_ON
KEY_INTERPOLATION VALUE_INTERPOLATION_BICUBIC
VALUE_INTERPOLATION_BILINEAR
VALUE_INTERPOLATION_NEAREST_NEIGHBOR
KEY_RENDERING VALUE_RENDER_DEFAULT
VALUE_RENDER_QUALITY
VALUE_RENDER_SPEED
KEY_STROKE_CONTROL VALUE_STROKE_DEFAULT
VALUE_STROKE_NORMALIZE
VALUE_STROKE_PURE
KEY_TEXT_ANTIALIASING VALUE_TEXT_ANTIALIAS_DEFAULT
VALUE_TEXT_ANTIALIAS_OFF
VALUE_TEXT_ANTIALIAS_ON
Refer to the java.awt.RenderingHints class for details about the above
keys and values.hintKey - java.awt.RenderingHint.Key Object, the key of the hint to be set.hintValue - the value indicating preferences for the specified
hint category.RenderingHintspublic void applyAntiAliasToChatAreaOnly(boolean b)
b - apply anti-alias option to chart area only (not on label)public final void setImageMapDataHintBoxHandle(ICustomizeImageMapDataHintBox val)
val - customer image map data hint box objectinterfacepublic ICustomizeImageMapDataHintBox getImageMapDataHintBoxHandle()
interfacepublic final IChartGraphics getChartGraphics()
quadbase.chartAPI.QbChart.setChartGraphics(),
quadbase.util.IChartCanvaspublic final java.awt.Image export()
ICanvas
public byte[] exportChartToByteArray()
throws java.lang.Exception
public byte[] exportChartToByteArray(boolean template)
throws java.lang.Exception
public java.lang.String exportChartToString()
throws java.lang.Exception
Parameter: ChartData
public void export(int format,
java.lang.String filename)
throws java.io.IOException
format - Available format are :filename - export file name, without extension
Use the same filename for the map file (*.map)
public void export(int format,
java.lang.String filename,
int w,
int h)
throws java.io.IOException
format - Available format are :filename - export file name, without extensionw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.
The w and h arguments are not used in case of VRML, CHT, TPL format.
Use the same filename for the map file (*.map)
public void export(int format,
java.lang.String filename,
java.lang.String subFilename)
throws java.io.IOException
format - Available format are :filename - export file name, without extensionsubFilename - map file name, without extension, useful if hyperlink exists /
xml file name, without extension, use for CHT or TPL format
public void export(int format,
java.lang.String filename,
java.lang.String subFilename,
int w,
int h)
throws java.io.IOException
format - Available format are :filename - export file name, without extensionsubFilename - map file name, without extension, useful if hyperlink exists /
xml file name, without extension, use for CHT or TPL formatw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.
The w and h arguments are not used in case of VRML, CHT, TPL format.
public void export(int format,
java.lang.String filename,
java.lang.String subFilename,
int w,
int h,
boolean generateSubFile)
throws java.io.IOException
format - Available format are :filename - export file name, without extensionsubFilename - map file name, without extension, useful if hyperlink exists /
xml file name, without extension, use for CHT or TPL formatw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.generateSubFile - show data point information in map file /
xml chart property file for CHT or TPL format
The w and h arguments are not used in case of VRML, CHT, TPL format.
public void export(int format,
java.lang.String filename,
int w,
int h,
int option)
throws java.io.IOException
format - Available format are :filename - export file name, without extensionw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.option - JPEG file quality (0 - 100) / PNG file compression
Available PNG Compression format are :
public void export(int format,
java.lang.String filename,
java.lang.String subFilename,
int w,
int h,
boolean generateSubFile,
int option)
throws java.io.IOException
format - Available format are :filename - export file name, without extensionsubFilename - map file name, without extension, useful if hyperlink exists /
xml file name, without extension, use for CHT or TPL formatw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.generateSubFile - show data point information in map file /
xml chart property file for CHT or TPL formatoption - JPEG file quality (0 - 100) / PNG file compression
Available PNG Compression format are :
public void export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
java.lang.String servletLoc)
throws java.lang.Exception
format - Available format are :filename - export file name, without extensiondrillDownChartName - drill-down Chart file absolute locationservletLoc - servlet location ("http://machineName:port#/...servlet");
public void export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
int w,
int h,
java.lang.String servletLoc)
throws java.lang.Exception
format - Available format are :filename - export file name, without extensiondrillDownChartName - drill-down Chart file absolute locationw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.servletLoc - servlet location ("http://machineName:port#/...servlet");
public void export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
int w,
int h,
java.lang.String servletLoc,
java.lang.String[] argv)
throws java.lang.Exception
format - Available format are :filename - export file name, without extensiondrillDownChartName - drill-down Chart file absolute locationw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.servletLoc - servlet location ("http://machineName:port#/...servlet");argv - optional parameter
public void export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
java.lang.String servletLoc,
PickData[] pickData)
throws java.lang.Exception
format - Available format are :filename - export file name, without extensiondrillDownChartName - drill-down Chart file absolute locationservletLoc - servlet location ("http://machineName:port#/...servlet");pickData - array of pickData from 1st drill-down level to current level
public void export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
int w,
int h,
java.lang.String servletLoc,
PickData[] pickData)
throws java.lang.Exception
format - Available format are :filename - export file name, without extensiondrillDownChartName - drill-down Chart file absolute locationw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.servletLoc - servlet location ("http://machineName:port#/...servlet");pickData - array of PickData from 1st drill-down level to current level
The w and h arguments are not used in case of VRML, CHT, TPL format.
public void export(int format,
java.lang.String filename,
java.lang.String drillDownChartName,
int w,
int h,
java.lang.String servletLoc,
PickData[] pickData,
java.lang.String[] argv)
throws java.lang.Exception
format - Available format are :filename - export file name, without extensiondrillDownChartName - drill-down Chart file absolute locationw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.servletLoc - servlet location ("http://machineName:port#/...servlet");pickData - array of PickData from 1st drill-down level to current levelargv - optional parameters
public void export(int format,
java.lang.String filename,
java.lang.String chartLocation,
int w,
int h,
java.lang.String servletLoc,
PickData[] pickData,
java.lang.String[] argv,
int option)
throws java.lang.Exception
format - Available format are :filename - export file name, without extensionchartLocation - drill-down Chart file absolute locationw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.servletLoc - servlet location ("http://machineName:port#/...servlet");pickData - array of PickData from 1st drill-down level to current levelargv - optional parametersoption - JPEG file quality (0 - 100) / PNG file compression
Available PNG Compression format are :
public void export(int format,
java.io.OutputStream image,
java.io.OutputStream subFile,
java.lang.String filename,
java.lang.String chartLocation,
int w,
int h,
java.lang.String servletLoc,
PickData[] pickData,
java.lang.String[] argv,
int option)
throws java.lang.Exception
format - Available format are :image - The outputStream. The caller is responsible for closing it.subFile - The outputStream. The caller is responsible for closing it.filename - export file name, without extensionchartLocation - drill-down Chart file absolute locationw - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.servletLoc - servlet location ("http://machineName:port#/...servlet");pickData - array of PickData from 1st drill-down level to current levelargv - optional parametersoption - JPEG file quality (0 - 100) / PNG file compression
Available PNG Compression format are :public void setDrillDownPath(java.lang.String path)
public boolean isFieldDrillDownEnabled()
public boolean isFieldDrillDownChart()
public static int getPickDataCount(java.lang.String param)
param - drill-down link data informationpublic static PickData[] toPickData(java.lang.String param)
param - drill-down link data information
public void export(int format,
java.io.OutputStream out)
throws java.io.IOException
format - Available format are :out - The outputStream. The caller is responsible for closing it.
public void export(int format,
java.io.OutputStream out,
int w,
int h)
throws java.io.IOException
format - Available format are :out - The outputStream. The caller is responsible for closing it.w - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.
public void export(int format,
java.io.OutputStream out,
int w,
int h,
int option)
throws java.io.IOException
format - Available format are :out - The outputStream. The caller is responsible for closing it.w - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.option - JPEG file quality (0 - 100) / PNG file compression
Available PNG Compression format are :
public void export(int format,
java.io.OutputStream image,
java.io.OutputStream subFile,
java.lang.String fileName,
int w,
int h,
boolean generateSubFile,
int option)
throws java.io.IOException
format - Available format are :image - The outputStream. The caller is responsible for closing it.subFile - The outputStream. The caller is responsible for closing it.fileName - The name of the CHT/TPL Chart for XML or the name of the MAP filew - output chart width (in pixels), 0 represents current widthh - output chart height (in pixels), 0 represent current height.generateSubFile - show data point information (MAP file) in subFile outputStream/
xml chart file for CHT or TPL format in subFile outputStreamoption - JPEG file quality (0 - 100) / PNG file compression
Available PNG Compression format are :
public void exportDataFile(java.lang.String fileName,
int separator,
int format)
throws java.lang.Exception
fileName - Output data file nameseparator - Available separators for TXT format are :format - Available format are :
public void exportDataFile(java.io.PrintStream out,
int separator,
int format)
throws java.lang.Exception
out - The outputStream. The caller is responsible for closing it.separator - Available separators for TXT format are :format - Available format are :
public final void refresh()
throws java.io.IOException,
java.sql.SQLException,
java.lang.ClassNotFoundException
refresh in class QbChartBasicpublic void repaintPanel()
public void draw(java.awt.Graphics g,
java.awt.Component component,
int width,
int height)
public final void setApplet(java.applet.Applet applet)
applet - the applet containing the chart. Use null if used within
an application.public final java.applet.Applet getApplet()
public final java.lang.String getErrorMessage()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectpublic int getDrillDownChartCount()
public DrillDownChart getDrillDownChartAt(int index)
throws java.lang.Exception
public DrillDownChart getDrillDownChart(java.lang.String name)
throws java.lang.Exception
public DrillDownChart createDrillDownChart(java.lang.String name,
int chartDim,
int chartType,
IDatabaseInfo dbInfo,
boolean doTransposeData,
int[] transposeCol,
IColumnMap mapping,
java.lang.String template,
int[] columnMapping)
throws java.lang.Exception
name - The name of the drill-down chart. If a drill-down chart already exists
with the same name, an IllegalArgumentException is thrownchartType - The type of the chart. See IChartConstants.dbInfo - The database information that will be used to retrieve data. It must implement
the IQueryFileInfo interface because drill-down charts require a parameterized query.mapping - Database results to chart table mapping.template - Template RPT file to be applied to the drill-down chart.columnMapping - Specifies which column of the calling chart should be mapped to each
parameter. Therefore, the length of this array should equal the number of parameters in the query.
public void updateDrillDownCharts()
throws java.lang.Exception
public final java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentsetPreferredSizepublic final void setPreferredSize(java.awt.Dimension d)
setPreferredSize in class javax.swing.JComponentd - the preferred dimensions of the component.public final int getModifier()
public java.lang.Object getArgument()
public final void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
public final void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
public static java.lang.String getVersion()
public static boolean isChartServerUsed()
public static void setChartServerUsed(boolean b)
b - If true the chart server is used, otherwise direct i/o
is attempted. The default value is true.public static void setChartServerUsed(int num)
num - Use 0 for false, otherwise true.
If true the chart server is used, otherwise direct i/o
is attempted. The default value is true.public static void setChartServerUsed(java.lang.String str)
str - Use "true" for true, otherwise false.
If true the chart server is used, otherwise direct i/o
is attempted. The default value is true.public static boolean isEspressManagerUsed()
public static void setEspressManagerUsed(boolean b)
b - If true, EspressManager is used; otherwise, direct i/o
is attempted. The default value is true.public static void setEspressManagerUsed(int num)
num - Use 0 for false, otherwise true.
If true, EspressManager is used; otherwise, direct i/o
is attempted. The default value is true.public static void setQueryTimeout(int seconds)
public static int getQueryTimeout()
public static void setEspressManagerUsed(java.lang.String str)
str - Use "true" for true, otherwise false.
If true, EspressManager is used; otherwise, direct i/o
is attempted. The default value is true.public static void setConnectURLForServer(java.lang.String comm_url)
comm_url - connect urlpublic static void useHttp(boolean b)
b - If true use HTTP connection, otherwise use SOCKET connection
The default value is false.public static void setServletRunner(java.lang.String comm_url)
comm_url - servlet runner hostname and port numberpublic static void useServlet(boolean b)
b - If true use SERVLET connection, otherwise use other connection
The default value is false.public static void setServletContext(java.lang.String context)
public static java.lang.String getServletContext()
public static boolean isForExportOnly()
public static void setForExportOnly(boolean state)
state - The new state. The default value is false.public static int getMaxRecordInMemory()
public static void setMaxRecordInMemory(int r)
public static int getFileRecordBufferSize()
public static void setFileRecordBufferSize(int r)
throws java.lang.Exception
public static int getMaxCharForRecordFile()
public static void setMaxCharForRecordFile(int r)
throws java.lang.Exception
public static java.lang.String getTempDirectory()
public static void setTempDirectory(java.lang.String str)
public void setAdjustFont(boolean state)
public boolean isAdjustFont()
public void setParamPageHeader(java.lang.String header)
the - header of the parameter HTML pagepublic void setParamPageFooter(java.lang.String footer)
the - footer of the parameter HTML pagepublic void setParamPageTitle(java.lang.String title)
the - title of the parameter HTML pagepublic void setParamPageTitleFontName(java.lang.String name)
the - font name of the title of the parameter HTML pagepublic void setParamPageTitleFontSize(int size)
the - font size of the title of the parameter HTML pagepublic void setParamPageTitleFontStyle(int style)
the - font style of the title of the parameter HTML page.
They are Font.PLAIN, Font.BOLD, Font.ITALIC, Font.BOLD + Font.ITALICpublic void setParamPageTitleFontColor(java.lang.String color)
the - hex value of the font color of the title of the parameter HTML pagepublic void setParamPageTitleFontColor(java.awt.Color color)
the - font color of the title of the parameter HTML pagepublic void setParamPageBackgroundColor(java.lang.String color)
the - hex value of the background color of the parameter HTML pagepublic void setParamPageTextFontName(java.lang.String name)
the - font name of the text of the parameter HTML pagepublic void setParamPageTextFontSize(int size)
the - font size of the text of the parameter HTML pagepublic void setParamPageTextFontStyle(int style)
the - font style of the text of the parameter HTML page
They are Font.PLAIN, Font.BOLD, Font.ITALIC, Font.BOLD + Font.ITALICpublic void setParamPageTextFontColor(java.lang.String color)
the - hex value of the font color of the text of the parameter HTML pagepublic void setParamPageTextFontColor(java.awt.Color color)
the - font color of the text of the parameter HTML pagepublic void setParamPageBorderColor(java.lang.String color)
the - hex value of the border color of the paramter HTML pagepublic void setParamPageBorderColor(java.awt.Color color)
the - border color of the parameter HTML pagepublic void setParamPageBorderThickness(int thickness)
the - border thickness of the parameter HTML pagepublic void setParamPageAlignment(int alignment)
the - alignment of the border of the parameter HTML pagepublic void setParamPageLayout(int layout)
the - layout of the form of the parameter HTML pagepublic void setParamPageResetEnabled(boolean state)
the - state whether to enable the reset button of the form of the parameter HTML pagepublic void setParamPageOuterBorder(boolean state)
the - state whether to show only the outer border of the form of the parameter HTML pagepublic java.lang.String getHTMLParamPage(java.lang.String servletName)
servletName - the name of the servlet
public java.lang.String getHTMLParamPage(java.lang.String chartLoc,
int format,
java.lang.String servletName)
chartLoc - the .rpt file locationformat - the export formatservletName - the name of the servletpublic java.lang.String getHTMLParamPageBody(java.lang.String servletName)
chartLoc - the .rpt file locationformat - the export formatservletName - the name of the servlet
public java.lang.String getHTMLParamPageBody(java.lang.String chartLoc,
int format,
java.lang.String servletName)
chartLoc - the .rpt file locationformat - the export formatservletName - the name of the servletpublic java.lang.String getHTMLParamPageBlock()
public static void setGIFEnable(java.lang.String serialNumber,
java.lang.String key)
throws java.lang.Exception
public void setBufferedImageUsed(boolean state)
state - The new state. The default value is false.public boolean isBufferedImageUsed()
public void setBufferedImageType(int imageType)
imageType - The new image type. The default value is java.awt.image.TYPE_INT_RGBBufferedImagepublic int getBufferedImageType()
public final java.lang.String getTemplateFile()
Associated QbChart property: TEMPLATE
applyTemplate
public final void applyTemplateFile(java.lang.String fileName)
throws java.io.IOException
Associated QbChart property: TEMPLATE
fileName - - the name of the TPL file from which the
chart properties are to be extracted.public void setLocale(java.util.Locale locale)
setLocale in class java.awt.Componentlocale - The locale to become this component's locale.public void setPanelBorder(java.lang.Object border)
setPanelBorder in class QbChartPanelborder - The border to be rendered for the component (border must be instance of javax.swing.border.Border object)public void setOpaque(boolean isOpaque)
setOpaque in class javax.swing.JComponentisOpaque - Opaque value of this component
public java.util.Locale getLocale()
throws java.awt.IllegalComponentStateException
getLocale in class java.awt.Componentpublic java.util.TimeZone getTimeZone()
public void setTimeZone(java.util.TimeZone zone)
zone - the given new time zonepublic final java.lang.String getFile()
Associated QbChart property: OPENFILE
public final void loadFile(java.lang.String fileName)
throws java.io.IOException
Associated QbChart property: OPENFILE
fileName - - the name of the CHT or TPL file from which the
chart is to be loaded. This must have extension ".cht" or ".tpl".public final int getDimension()
Associated QbChart property: DIMENSION
public final void setDimension(int d)
Associated QbChart property: DIMENSION
d - - integer constant (VIEW2D or VIEW3D) denoting the dimension.public final int getType()
Associated QbChart property: CHART_TYPE
public final void setType(int type)
Associated QbChart property: CHART_TYPE
type - : an integer constant denoting a chart type.public boolean isPrintKeyEnabled()
Associated QbChart property: PRINTING
public void setPrintKeyEnabled(boolean b)
Associated QbChart property: PRINTING
b - - if true, print keys are enabled, otherwise disabled.public boolean isRefreshEnabled()
public void setRefreshEnabled(boolean b)
b - - if true, refresh key is enabled, otherwise disabled.public final boolean isHiLowAsCandleStick()
Associated QbChart property: CANDLE_STICK
public final void setHiLowAsCandleStick(boolean b)
Associated QbChart property: CANDLE_STICK
b - - if true, the chart is displayed in candlestick form,
otherwise displayed in its usual form.public static void setScrollBarOption(int option)
option - Possible scrollbar option. Choices are:
ScrollPane.SCROLLBARS_ALWAYS ScrollPane.SCROLLBARA_AS_NEEDED ScrollPane.SCROLLBARS_NEVER
public final I3DControlPanel geth3DControlPanel()
I3DControlPanelpublic final I3DPropertySet geth3DProperties()
I3DPropertySetpublic final ITextString gethMainTitle()
ITextStringpublic final ILegend gethLegend()
ILegendpublic final IAxis gethXAxis()
IAxispublic final IAxis gethYAxis()
IAxispublic final IAxis gethZAxis()
IAxispublic final IAxis gethAxis(int idx)
IAxispublic final ICanvas gethCanvas()
ICanvaspublic final IHyperLinkSet gethHyperLinks()
IHyperLinkSetpublic final ITrendLineSet gethTrendLines()
ITrendLineSetpublic final IDataLineSet gethDataLines()
IDataLineSet,
IDataLine,
ITrendLine,
IHorzVertLine,
IControlLinepublic final IControlRangeSet gethControlRanges()
IControlRangeSetpublic final IDropBarSet gethDropBars()
IDropBarSetpublic final IAnnotationSet gethAnnotations()
IAnnotationSet,
IAnnotationpublic final IFloatingLineSet gethFloatingLines()
IFloatingLineSetpublic final IFloatingTextSet gethFloatingText()
IFloatingTextSetpublic final IPlot gethChartPlot()
IPlotpublic final IInputData gethInputData()
quadbase.ChartAPI.swing.IInputDatapublic final IDataPointSet gethDataPoints()
IDataPointSetpublic final IBubblePropertySet gethBubbleProperties()
IBubblePropertySetpublic final IPiePropertySet gethPieProperties()
IPiePropertySetpublic final ISurfacePropertySet gethSurfaceProperties()
ISurfacePropertySetpublic final IDoughnutPropertySet gethDoughnutProperties()
IDoughnutPropertySetpublic final IOverlayPropertySet gethOverlayProperties()
IOverlayPropertySetpublic final IRadarPropertySet gethRadarProperties()
IRadarPropertySetpublic final IPolarPropertySet gethPolarProperties()
IPolarPropertySetpublic final ILinePropertySet gethLineProperties()
ILinePropertySetpublic final IGanttPropertySet gethGanttProperties()
IGanttPropertySetpublic final IDialPropertySet gethDialProperties()
IDialPropertySetpublic final IBoxPropertySet gethBoxProperties()
IBoxPropertySetpublic final ISecondaryChart gethSecondaryChart()
ISecondaryChartpublic final IAxisRuler gethXRuler()
IAxisRulerpublic final IAxisRuler gethYRuler()
IAxisRulerpublic final IZoomInfo gethZoomInfo()
IZoomInfopublic final IDrillDown gethDrillDown()
IDrillDownpublic final ITable gethTable()
ITablepublic final IHistogramInfo gethHistogramInfo()
IHistogramInfopublic final IMouseEventSet gethMouseEvents()
IMouseEventSetpublic final IPopupMenu gethPopupMenu()
public final INoDataToPlotMessage gethNoDataToPlotMessage()
public static void setServerAddress(java.lang.String address)
throws java.net.UnknownHostException
public static void setServerPortNumber(int port)
public static void setServerHosts(java.util.Vector hostnames)
public ChartParameterPage getParameterPage(java.lang.String chartLoc,
int format,
java.lang.String servletName)
chartLoc - the chart file locationformat - the export formatservletName - the name of the servletpublic static boolean useSingleTableForDistinctParamValue()
public static void setUseSingleTableForDistinctParamValue(boolean state)
public static java.lang.String getUpdateVersion()
|
EspressReport v 5.5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||