Stateflow |
 |
Creating a Transition
Use the following procedure for creating transitions between states and junctions:
- Place the cursor on or close to the border of a source state or junction.
- The cursor changes to crosshairs.
- Click and drag a transition to a destination state or junction.
- Release on the border of the destination state or junction.
- Notice that the source of the transition sticks to the initial source point for the transition.
Attached transitions obey the following rules:
- Transitions do not attach to the corners of states. Corners are used exclusively for resizing.
- Transitions exit a source and enter a destination at angles perpendicular to the source or destination surface.
- Newly created transitions have smart behavior. See Setting Smart Behavior in Transitions.
To delete a transition, select it and choose Ctrl+X or Cut from the Edit menu, or press the Delete key.
See the following sections for help with creating self-loop and default transitions:
| Using Transitions in Stateflow Charts | | Creating Straight Transitions |  |