addShape(shape, index)

Class: Window.

Description:

Adds a Shape to be drawn on the panel.

Parameters:

Name Type Description

shape

Shape

Shape to be added

index

number

Set only if you want to insert the Shape at a specific index

Returns:

Returns this Window

Type: Window