Stateflow    

Moving Transitions

You can move transition lines with a combination of several individual movements. These movements are described in the following topics:

In addition, transitions move along with the movements of states and junctions. See Setting Smart Behavior in Transitions for a description of smart and nonsmart transition behavior.

Bowing the Transition Line

You can move or "bow" transition lines with the following procedure:

  1. Place the cursor on the transition at any point along the transition except the arrow or attach points.
  2. Click and drag the mouse to move the transition point to another location.
  1. Only the transition line moves. The arrow and attachment points do not move.

  1. Release the mouse button to specify the transition point location.

The result is a bowed transition line. Repeat the preceding steps to move the transition back into its original shape or into another shape.

Moving Transition Attach Points

You can move the source or end points of a transition to place them in exact locations as follows:

  1. Place the cursor over an attach point until it changes to a small circle.
  2. Click and drag the mouse to move the attach point to another location.
  3. Release the mouse button to specify the new attach point.

The appearance of the transition changes from a solid to a dashed line when you detach and release a destination attach point. Once you attach the transition to a destination, the dashed line changes to a solid line.

The appearance of the transition changes to a default transition when you detach and release a source attach point. Once you attach the transition to a source, the appearance returns to normal.

Moving Transition Labels

You can move transition labels to make the Stateflow diagram more readable. To move a transition label, do the following:

  1. Click and drag the label to a new location.
  2. Release the left mouse button.

If you mistakenly click and then immediately release the left mouse button on the label, you will be in edit mode for the label. Press the Esc key to deselect the label and try again. You can also click the mouse on an empty location in the diagram editor to deselect the label.


  Labeling Transitions Changing Transition Arrowhead Size