GRASP - CPG Window (Ada 95)

When the user generates a CPG, a window similar to the one shown above will appear. Also note that CPG segment numbers are added to the CSD Editor Window for easy referencing between the CSD and the CPG.

The group of numbers and labels shown at the top of the window (just above the Spacing and Scale labels) allow the user to see the calculated CPG numbers for an individual segment. By moving the mouse pointer over a particular segment in the graph, the calculated complexities for that particular segment appear at the top of the window.

The Spacing scroll bar adjust the amount of space between CPG segments on the graph. The scale scroll bar adjusts the width of the individual components (vertical bars) in the graph. The bottom scroll bar scrolls the contents of the graph window. This scroll bar is active only if the "Scroll Lock to Text" option under the Settings menu is not active.

Orientation - Currently not available. Future: Allow the user to toggle between a horizontal bar graph and a vertical bar graph.

Settings - Affects the appearance of the graph and labels in the window.

Segment Labels - Adjusts the numbering scheme at the bottom of the graph (labeled Segment Numbers). The user may determine which segment labels should appear (e.g., every 5th label, or perhaps every 10th). This may also be set to a custom increment via the Offset/Increment option.

Complexity Labels - Toggles on/off the numbers on the vertical axis (labeled Complexity).

Complexity Lines - Toggles on/off a set of horizontal lines corresponding to the complexity labels.

Axis Labels - Toggles on/off the appearance of the axis lables (i.e., "Segment Number" and "Complexity").

Visible Region Highlight - Toggles on/off the dashed box that corresponds to the code that is currently visible in the CSD Editor Window.

Key - Toggles on/off the appearance of the color legend at the left side of the CPG window.

Totals - Toggles on/off the appearance of the numerical totals at the lower left part of the CPG window.

Fill Style - Changes the fill style of the graph between color (shown), greyscale and stippled (patterned).

Scroll Lock to Text - When activated, this option moves the graph in the CPG window as the user scrolls through the source code in the CSD editor window.

Data Sets - Allows the user to select which of the five components (Breadth, Content, Reachability, Inherent, Complexity) of the CPG to display.

Scaling - Allows the user to adjust the scale of the individual components of the CPG. Default scales are all set to "x 1".

Return to the CSD Window : CPG Page