Topic: APLX Help : System Classes : List of Classes : Arc
[ Previous | Next | Contents | Index | APL Home ]



The Arc class implements the circles, ellipses and arcs. They can be filled or just outlined.

These objects are normally used for display purposes only. The where or size property is used to define the enclosing rectangle.

The angle property defines the start and end angle; if this is 0 0, a complete circle (or ellipse) is drawn.

You can set the filled property to indicate that you want the object filled with the foreground color. You can set the foreground color using the color property. (The background color is ignored). The pensize property changes the thickness of the lines.

Note: Remember that the default scale is in character units. See the scale property for details.

See also the Draw method which allows you to draw geometric shapes on your windows and controls.


[1]   ⍝ Sample function demonstrating use of the Arc object
[2]   DEMO←'⎕' ⎕NEW 'Window' ⋄ DEMO.scale←1
[3]   DEMO.title←'Arc Example'
[4]   ⍝
[5]   DEMO.ARC.New 'Arc'
[6]   DEMO.ARC.where←4 4 3 5
[7]   DEMO.ARC.color←255
[8]   DEMO.ARC.angle←90 330
[9]   ⍝
[10]  DEMO.FILLEDARC.New 'Arc'
[11]  DEMO.FILLEDARC.where←4 12 3 5
[12]  DEMO.FILLEDARC.color←(255×256)
[13]  DEMO.FILLEDARC.angle←90 330
[14]  DEMO.FILLEDARC.filled←1
[15]  ⍝
[16]  ⍝ Wait for the user to close the window
[17]  0 0⍴⎕WE DEMO


align anchors angle aquaadjust autodraw children class color data dragsource droptarget enabled events extent filled maxsize methods minsize name opened pen pointer properties scale self size sourceformats targetformats tie units visible where


Click Clienttoscreen Close Create Delete Hide New Open Paint Resize Screentoclient Send Set Show Trigger


onClick onClose onDblClick onDestroy onDragDrop onDragEnd onDragEnter onDragLeave onDragOver onDragStart onHide onMouseDown onMouseMove onMouseUp onOpen onSend onShow

Topic: APLX Help : System Classes : List of Classes : Arc
[ Previous | Next | Contents | Index | APL Home ]