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;
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%.
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%.
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%.
ZoomFactor property for a nonempty chart
ch to an absolute magnification level of 150%.
editor = ch.Editor; editor.ZoomFactor = 1.5;