S T R U C T O R I Z E R - User Guide
Settings > Type

Diagram menu with diagram type items selected

Structograms in Structorizer can be divided into three categories:

  • main programs (as in any sequential programming language),
  • subroutines (procedures, functions, methods),
  • includable diagrams (shared definitions, global initialization)

Main programs are drawn with square corners whereas sub methods are drawn with rounded corners. Includable diagrams are drawn with bevelled upper left and lower right corner. Depending on the chosen type of diagram and whether your diagram is boxed or not, the diagram is drawn differently.

You may alter the type of a diagram via the menu or by using the speed buttons: main selected

The following table resumes all cases by giving an example:

Type Speedbuttons Diagram
main, boxed

main selected

boxed diagram

program boxed
main, not boxed

main selected

unboxed diagram

program un-boxed
 sub, boxed

sub selected

boxed diagram

routine boxed
 sub, not boxed

sub selected

unboxed diagram

routine un-boxed
 includable, boxed

includable selected

boxed diagram

include boxed
 includable, not boxed

includable selected

unboxed diagram

include un-boxed

Note:

  1. The type of the diagram (main or sub) usually influences the source code generator and may thus result in different code.
  2. Only diagrams of type sub are callable, i.e. may be employed by the executor if referenced in a Call element (also see Program/Sub).
  3. Diagrams of type includable are meant to be referenced by a main, sub, or other includable diagram via the include list (see Program/Sub).
  4. As to be seen in the images above, the heading (and the possible bottom margin) of an un-framed diagram will appear in gray whereas the box of a boxed diagram is white (unless being selected or marked as test-covered, of course).