| window | Specifies the window (an object of the Window class) that will own this layer. Once the window is decided, it cannot be changed. |
| parent | Specifies the layer that will be the parent of this layer. If null is specified, it becomes the primary layer. Only one primary layer can exist per window, and if layers are used, one must always exist as the parent of all other layers. However, depending on the drawing device (settable via Window.drawDevice), some windows may allow multiple primary layers. The parent of a layer can be changed using the Layer.parent property. |