Four rectangles are defined. Each is given a different zOrder. For example, the red rectangle is set to order="3". This results in the objects being placed in separate planes or layers. The insertion and deletion of the rectangles does not change the z-order of the existing rectangles. When all the rectangles are added the order is red, green, blue and yellow, with red on top. The order of insertion and deletion:
insert red
insert yellow behind red
insert green between red and yellow
insert blue between green and yellow
delete blue
delete red
delete green
delete yellow
Snapshot taken of IBMzOrder.mp4
![]() |