Stateflow | ![]() ![]() |
Creating Transitions
Place the cursor at a straight portion of the border of the source state. Click the border when the cursor changes to a cross-hair. Drag and release on a straight portion of the border of the destination state when the transition changes from a dotted line to a solid line. The solid line indicates the transition is in position to be attached. The cross-hair will not appear if you place the cursor on a corner, since corners are used for resizing.
Use a similar procedure to create transitions between junctions. You can start or end a transition at any point on a junction. To draw a perfectly straight transition between two junctions, hold the Shift key down as you draw the transition. If you draw a nearly straight transition between two junctions without holding down the Shift key, Stateflow straightens the transition after you finish drawing the transition.
To delete a transition, select it and choose Cut (Ctrl+X) from the Edit menu or any shortcut menu or press the Delete key.
![]() | Creating Boxes | What Is a Default Transition? | ![]() |