Stateflow    

Specifying Colors and Fonts

You can specify the color and font for items in the diagram editor, as described in the following topics:

Changing Fonts for an Individual Text Item

You can change the font for an individual text item as follows:

  1. Right-click the individual item.
  2. From the resulting submenu, select Font Size -> size of font.

You can also specify the label font size of a particular object:

  1. Left-click an individual text item in the editor.
  2. From the editor's Edit menu, select Set Font Size.
  3. From the resulting submenu, select the font size.

Using the Colors & Fonts Dialog

The Stateflow Colors & Fonts dialog allows you to specify a color scheme for a chart as a whole, or colors and label fonts for different types of objects in a chart.

To display the Colors & Fonts dialog, select Style from the Stateflow editor's Edit menu.

The drawing area of the dialog displays examples of the types of objects whose colors and font labels you can specify. The examples use the colors and label fonts specified by the current color scheme for the chart. To choose another color scheme, select the scheme from the dialog's Schemes menu. The dialog displays the selected color scheme. Click Apply to apply the selected scheme to the chart or OK to apply the scheme and dismiss the dialog.

To make the selected scheme the default scheme for all Stateflow charts, select Make this the "Default" scheme from the dialog's Options menu.

To modify the current scheme, position the cursor over the example of the type of object whose color or label font you want to change. Then left-click to change the object's color or right-click to change the object's font. If you left-click, Stateflow displays a color chooser dialog.

Use the dialog to select a new color for the selected object type.

If the selected object is a label and you right-click, Stateflow displays a font selection dialog.

Use the font selector to choose a new font for the selected label.

To save changes to the default color scheme, select Save defaults to disk from the Colors & Fonts dialog's Options menu.


  Displaying the Context Menu for Objects Selecting and Deselecting Objects