Skip to content

Editing regions

In a statechart model, you can have

  • top-level regions, which are directly placed on the canvas, and
  • regions inside of composite or orthogonal states.

Their graphical representation differ somewhat, thus editing them is also somewhat different.

Editing top-level regions

You can place a top-level region anywhere on the canvas, and you can change its size at will. To change the location or the size of a region, use the graphical editor. Drag the region to move it elsewhere. Use a selected region’s handles to resize it.

Editing regions in orthogonal states

Regions inside an orthogonal or composite state are confined by their enclosing state. They are sized automatically, depending on their contents, and they are arranged either vertically or horizontally.

You can toggle between vertical and horizontally representation of regions in an orthogonal state as follows:

  1. Right-click on the orthogonal state’s title. The context menu opens.
  2. In the context menu, select Toggle Subregion Alignment.
  3. The layout of the regions switches from horizontal to vertical or vice versa.

Changing the name of a region

You can change the name of a region in the statechart editor as well as in the properties view.

  • In the statechart editor,
    • double-click on the region’s current name,
    • edit the name in the text field that appeares after double-clicking,
    • press the [Return] key to finish editing.
  • In the properties view,
    • modify the Region Name property. It is a region’s only property you can access through the properties view.