Graphical aspects of a chart or state transition table
Stateflow.Editor object to access the graphical aspects
of a Stateflow® chart or state transition table. You can use the
Stateflow.Editor object to control the position, size, and magnification
level of the Stateflow Editor window.
Each chart has its own
Stateflow.Editor object. When you create a chart,
Stateflow.Editor object is automatically created for it. To access the
Stateflow.Editor object, use the
Editor property for
the chart. For example, if
ch is a
editor = ch.Editor;
Stateflow API objects have properties that correspond to the values you set in the Stateflow
Editor. To access or modify a property, use dot notation. To access or modify multiple
properties for multiple API objects, use the
set functions, respectively. For more information, see Modify Properties and Call Functions of Stateflow Objects.
WindowPosition — Position and size of window
[left top width height]
Position and size of the Stateflow editor window, specified as a four-element numeric vector of the form
[left top width height].
ZoomFactor — Magnification level
Magnification level of the chart or state transition table in the editor, specified
as a scalar value between
10. A value of
1 corresponds to a magnification of 100%.
Zoom in on Stateflow Chart
Increase the magnification level of a nonempty chart
editor = ch.Editor; zoomIn(editor)
If the magnification level for the chart was initially 100%, this command increases it to 130%.
Zoom out on Stateflow Chart
Decrease the magnification level of a nonempty chart
editor = ch.Editor; zoomOut(editor)
If the magnification level for the chart was initially 100%, this command decreases it to 76.9%.
Set Zoom Factor
ZoomFactor property for a nonempty chart
ch to an absolute magnification level of 150%.
editor = ch.Editor; editor.ZoomFactor = 1.5;