Main Content

zoomOut

Zoom out on Stateflow chart

Description

example

zoomOut(editor) reduces the magnification level of the Stateflow.Editor object editor for a chart.

Examples

collapse all

Decrease the magnification level of a nonempty chart ch.

ed = ch.Editor;
zoomOut(ed)

If the magnification level for the chart was initially 100%, this command decreases it to 76.9%.

Input Arguments

collapse all

Editor for a chart, specified as a Stateflow.Editor object. The Stateflow.Editor object provides access to the graphical aspects of a chart. For example, to access the Stateflow.Editor object for a Stateflow.Chart object ch, enter:

ed = ch.Editor;

Algorithms

The zoomOut function modifies the ZoomFactor property of the Stateflow.Editor object. The property is limited to a minimum of 0.5 and a maximum of 10. zoomOut divides ZoomFactor by a factor of 1.3 as long as the resulting value is in this range. Otherwise, zoomOut sets ZoomFactor to the minimum value of 0.5.

Introduced before R2006a