N2 Diagram Project Preferences

The N2 (pronounced "N-squared") diagram preferences allow you to determine how N2 diagrams are displayed by default (options controlling what is displayed and how). Individual N2 diagrams can then be customized, as desired.

 

Options set in the Project Preferences dialog establish the defaults for all future diagrams. Any diagrams which are open or diagrams for which the view settings have been saved will not be affected by changes to the project preferences. To change these diagrams, open the individual diagram and change the local options.

 

Diagram Options

Show External Items - controls whether or not to display items which are inputs, triggers, or outputs for functions on the diagram but do not have corresponding sources or sinks on the diagram. Showing external items helps identify data flow across functional (and corresponding component) boundaries.

 

Use Grid Representation - controls whether a matrix layout should be used in place of the traditional node and connecting line representation.

 

Show Frame - controls whether a frame will be shown around the diagram. If a frame is shown, the frame block contents are specified by the General Diagram settings.

 

Use Local Icon Settings - determines whether each individual diagram defaults to use its own independent (local) icon settings or these global settings. If the diagram is marked to use local icon settings, changes to the icon settings in the Project Preferences will not impact that diagram. If the diagram is marked to use global icon settings, diagram icons will update as the user changes the icon settings in the Project Preferences. If you wish to standardize the look of your diagrams across each individual diagram, using global settings will simplify icon management. When a specific diagram has special needs, using local icon settings allows you to customize the diagram-level icon settings.

 

Color - controls the font, line, and fill color for the diagram background. On the N2 diagram, the line color controls the diagram lines (lines connecting functions to items in a traditional representation, matrix grid lines in the grid representation) as well as the diagram frame.

 

 

Tips and Tricks

When using graphical images on diagrams, it is often best to use a white background.

Icon Settings

The icon settings control the default display of the function icons on the diagram. The graphic pane displays a sample icon based upon the current icon settings. This is useful in evaluating how much space is available to display information on the icon. On a given diagram, individual icons can then be customized, as desired.

 

Icon Size - controls the default width and height of icons on the diagram. The width and height must each be between 10 and 500 pixels, inclusive.

 

Icon Template - this drop-down allows you to select the desired icon content from the collection of templates defined at the project level. You can display any combination of element information and labels on the icon. Icon templates can be created or customized via the Icon Registry under the Utilities section of the project explorer.

 

Use Image - toggles the default icon presentation between a geometric frame and a graphic representation. If toggled to display a graphic, CORE will display the image associated with the element with the icon template fields shown below the image. If the element bitmap has not been set, CORE will display the image associated with the element's class.

 

Bold - toggles bold font on or off for the icon text.

 

Italic - toggles italics font on or off for the icon text.

 

Color - provides access to the standard color palette to set the default font, line, and fill color used when drawing icons on this diagram. The order of precedence CORE uses when drawing a specific node on a diagram is as follows. If a color setting is nil/automatic, CORE will continue to move down the list until it identifies the color to be used:

  1. Colors applied directly to the specific node on the specific diagram (set using the toolbar buttons on the diagram)

  2. Colors specified for the element font, line, and fill attribute fields (set on the secondary tab of the element property sheet)

  3. Colors specified for the element class font, line, and fill properties (set on the class property sheet)

  4. Colors specified for the node construct type (set in the General Diagram category of the project preferences)

  5. Node colors specified for the diagram type (set in the Diagram Options)

 

 

N2 diagrams do not include the icon spacing settings that you are used to seeing in most diagram preferences. The basic N2-style layout is controlled completely by the icon sizing, so no icon spacing is required.

Item Icon Settings

The item icon settings control the default display of the off-diagonal input, output, and trigger icons on the diagram. Individual items can then be customized, as desired. The options available are largely identical to the icon settings options.

 

 

Because each off-diagonal node connecting one function to another can represent multiple individual items, the item icons on the N2 diagram use a special class of icon templates referred to as multi-object icon templates. These icon templates can be created or customized via the Icon Registry under the Utilities section of the project explorer. They have similar capabilities to standard, single-object icon templates but are customized to display multiple elements within one node.

 

 

Note that multi-object icon templates cannot use image representations (it would be ambiguous as to which element image to use). Therefore, the use image toggle is not shown for item icons.