Creating Views

This topic discussesthe different ways to show or hide model content to create different views of the project for different purposes or users- analysts, domain experts, managers, etc. Some technical books on UML refer to this practice as elision or eliding of model content. Together's view management features enables you to apply this concept at several levels.

View management mechanisms

Together's view management features provide several ways to control what you see in your visual model at any given time:

"Show" Options

Together provides a number of configuration options that control what elements in a Class diagram are visible and what elements are hidden. For example, you might choose to hide such things as abstract Classes, private Members, or some types of relationship links. These are called simply Show Options... you use them to specify what you want to show in the diagram.

Show Options are in one node of the View Management page of the Default Options, Project Options, and Diagram Options dialogs. Use Default Options to apply the settings globally at the level of your configuration. Use Project Options to apply the settings to a currently open project. Use Diagram Options to set them individually for a specific diagram, overriding the more global settings. Tip: The Diagram View Management button on the Main Toolbar provides a shortcut to view management options for the current diagram.

The Show options are expression-based and user-modifiable. For more detailed information see View Management "Show" Options.

Show/Hide for individual diagram elements

You can hide Node elements in all diagrams, either singly or as a group, using the Hide command on the speedmenus of such elements. Any relationship links between elements you hide this way become hidden as well. (You cannot hide the links themselves.) You can restore hidden elements and their links to view at any time.

To hide elements:

  1. Select one or more Node elements.

  2. Right-click on any of the selected elements.

  3. Choose Hide from the speedmeu.

To restore hidden elements:

  1. Right-click on the diagram background to display the Diagram speedmenu.

  2. Choose Show Hidden to display the Show Hidden dialog.

  3. The "Hidden" list on the left displays all hidden elements.

  4. Click OK to close the dialog.

The previously hidden elements are restored to view along with any links between them to elements that were not hidden to begin with.

Tip: In large diagrams you may find it more convenient to use the Show Hidden dialog to hide elements. Just follow the procedure to restore elements, except that you select elements from the "Shown" list and use the Hide or Hide All buttons.

Detail levels for Classes

You can control how much of the information in Class diagram elements (e.g. Classes, Interfces) displays in the diagrams. The different detail levels are:

Set the Diagram Detail Level option on the View Management page of the Default, Project, and Diagram Options dialogs (Main menu |Options).

To change the detail level in a Class diagram:

  1. Right-click on the background of the Class diagram.

  2. Select Diagram Options... to display the Diagram Options... dialog.

  3. On the View Management tab, in the Diagram Detail Level node, select the desired level of detail for the diagram and click OK to write the changes to your system configuration

Managing Working Views with Panes

Together's main window is comprised of several panes. Depending on what you do, you may or may not need to see some of the panes. For example, a designer might not need to see the Editor pane. And regardless of which pane you use most, it can be handy to get the Explorer pane out of the way. You can do pane management 3 ways: with the main View menu, the Main Toolbar, or using keyboard shortcuts. Have a look at the View menu and try out the different toggles to see which view and toggle method you prefer.