Changing Shape's Position in Stacking Order

Although the 2D presentation is flat, shapes are drawn in a certain order and shown one above the other. This order is called the Z-order because there is a virtual Z axis perpendicular to the surface of the presentation and extending towards the viewer.

There are four common commands that allow you to change the Z-order of a shape:



Bring To Front

Places the shape on top of all other shapes.

Bring Forward

Moves the shape one step up (swaps it with the shape directly in front).

Send Backward

Moves the shape one step down (sends the shape backward one level).

Send To Back

Places the shape below all other shapes.

 To change the Z-order of a shape

  1. Select the shape in the graphical editor by clicking it.
  2. Click the corresponding [Command]  toolbar button, or
    Right-click (Mac OS: Ctrl+click) the shape in the graphical editor and choose Order > [Command] from the context menu, or
    Choose Draw > Order > [Command]  from the main menu.
The figure below illustrates these commands. Here we change the Z-order of the red star that is initially placed below two shapes (cyan rounded rectangle and white oval) and on top of two other ones (circle and rectangle). You can see that by changing the Z-order of a shape, you move it in the Presentation tree up or down. The elements of the Presentation tree are actually displayed according to their Z-order - the shape that is placed below all other shapes is the topmost item of the tree, and so on.

For the time being, it is impossible to change the shape's position in stacking order dynamically at model runtime. But you can play with visibility of the shapes to create the required dynamic presentation.

Sometimes shapes get hidden below other shapes. You can still select those shapes either by clicking their location several times in the graphical editor or by using the Presentation tree.

 To select a shape that is hidden below other shapes in the graphical editor

  1. Click in the position where the hidden shape is located. The top level shape gets selected.
  2. Continue clicking in the same position until you select the shape you are looking for. With each click, the next shape in the stacking order will be selected. In the Properties view, you can see which shape is currently selected.