BBjDrawPanel::drawArc
Description
In BBj 16.0 and higher, this method draws an open arc or closed pie slice on the BBjDrawPanel.
Syntax
Return Value |
Method |
---|---|
void |
drawArc(number x, number y, int r, double aspect, double startAngle, double endAngle, boolean pieFlag) |
Parameters
Variable |
Description |
x |
Horizontal position of the center of the circle or arc. |
y |
Vertical position of the center of the circle or arc. |
r |
The radius of the circle, or the longest radius of the arc. |
aspect |
The ratio of the radius along the x axis divided by the radius along the y axis. The default aspect ratio is 1 for a circle. |
startAngle |
Starting point of an arc, an angle specified in radians. The default is zero. When equal to endAngle, the complete curve is drawn. |
endAngle |
End point of an arc, an angle specified in radians The default is zero. When equal to startAngle, the complete curve is drawn. |
pieFlag |
Connects the start and end points of an arc to a center point to form a pie shape. If pieFlag is nonzero (the default is zero), a closed "pie slice" object is drawn (using the current pen and fill), instead of an arc (using only the current pen). |
Return Value
None.
Remarks
BBj specifies angles in radians, counter-clockwise from 3 o'clock. 3 o'clock is 0.0 radians, 12 o'clock is PI*0.5 radians, 9 o'clock is PI*1.0 radians, and 6 o'clock is PI*1.5 radians. Values of PI*2.0 radians or greater are treated as MOD(value,PI*2.0).
Example
|
See Also
ARC Mnemonic - Draw Arc (SYSGUI)
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.