BBjWindow::addPieChart
Description
In BBj 7.00 and higher, this method adds a pie chart control to the BBjWindow.
Syntax
Return Value |
Method |
---|---|
addPieChart(int ID, number x, number y, number w, number h, boolean showLegend, boolean is3D) |
|
addPieChart(int ID, number x, number y, number w, number h, boolean showLegend, boolean is3D, byte[] flags) |
|
addPieChart(int controlID, boolean showLegend, boolean is3D) |
|
addPieChart(int controlID, boolean showLegend, boolean is3D, byte[] flags) | |
addPieChart(boolean showLegend, boolean is3D) | |
addPieChart(boolean showLegend, boolean is3D, byte[] flags) |
Parameters
Variable |
Description |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ID |
Specifies the Control ID number. It must be an integer between 1 and 32767 and be unique within a given top level window. |
||||||||||
x |
Specifies the horizontal position of the upper-left corner of the control in current units. |
||||||||||
y |
Specifies the vertical position of the upper-left corner of the control in current units. |
||||||||||
width |
Specifies the width of the control in current units. |
||||||||||
height |
Specifies the height of the control in current units. |
||||||||||
showLegend |
Indicates
whether a default legend should be displayed. |
||||||||||
is3D |
Indicates
whether the chart should be rendered in 3 dimensions. Note:This parameter is ignored in BBj 23.00 and higher; 3d charts are not supported in JFreeChart 1.5.x. |
||||||||||
flags |
Set control flags, as follows:
|
Return Value
Returns the created BBjPieChart object.
Remarks
If the ID parameter is not specified, a control ID is assigned dynamically using getAvailableControlID().
If the x, y, width, and height parameters are not specified, they're all initialized to 0. This is typically for use with DWC windows that dynamically arrange their contents (window creation flag $00100000$).
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.