Diagram Editor

The Diagram Editor provides a graphical view of the a set of model components and their relationships. Several types of diagrams are available depending on model type. They include:

- Package Diagram
- Custom Diagram
- Transformation Diagram
- Mapping Diagram
- Mapping Transformation Diagram

You can customize various diagram visual properties via Diagram Preferences.

Diagram Features

Each diagram provides actions for model editing and visual customization. These features are provided by :

- Main toolbar diagram action contributions
- Individual diagram toolbar
- Selection-based context menus.

These features will be discussed below in detail for each diagram type.

Main Toolbar Diagram actions

When a Diagram Editor is in focus, a set of common diagram actions is added to the application's main toolbar.

The actions include:

- Zoom In
- Zoom to Level
- Zoom Out
- Increase Font Size
- Decrease Font Size
- Perform Diagram Layout

Package Diagram

Package Diagram toolbar actions include:

- Refresh Diagram - Re-draws diagram.
- Show Parent Diagram - Navigates to diagram for parent object (if available).
- Save Diagram as Image - Save the diagram image to file in JPG or BMP format.
- Modify Diagram Printing Preferences - Modify page layout information for printing diagrams. Includes margins, orientation, etc...
- Show/Hide Page Grid - Show current page boundaries as grid in diagram.

Context menus provide a flexible means to edit model data, especially from Package Diagrams. Each Package Diagram represents the contents of some container (i.e. Model, Category, Schema, etc...), so New Child, New Sibling & New Association actions are almost always available in addition to standard Edit actions (Delete, Cut, Copy, Paste, Rename, Clone).

A sample context menu for a relational base table is shown below.

Custom Diagram

Custom Diagram toolbar actions include:

- Refresh Diagram - Re-draws diagram.
- Show Parent Diagram - Navigates to diagram for parent object (if available).
- Add To Diagram - Add selected objects to diagram.
- Remove From Diagram - Removed objects selected in diagram from diagram.
- Clear Diagram - Remove all objects from diagram.
- Save Diagram as Image - Save the diagram image to file in JPG or BMP format.
- Modify Diagram Printing Preferences - Modify page layout information for printing diagrams. Includes margins, orientation, etc...
- Show/Hide Page Grid - Show current page boundaries as grid in diagram.

Since Custom Diagrams do not represent represents the contents of container objects(i.e. Model, Category, Schema, etc...) its context menus are limited to adding/removing obejcts from diagram and basic diagram-related display options.

Transformation Diagram

Transformation Diagram toolbar actions include:

- Refresh Diagram - Re-draws diagram.
- Show Parent Diagram - Navigates to diagram for parent object (if available).
- Add Transformation Sources - Add selected sources to transformation.
- Add Union Transformation Sources - Add selected sources as union sources.
- Remove Transformation Sources - Removed sources selected in diagram from transformation.
- Clear Transformation - Remove all sources from transformation.
- Open Transformation Reconciler dialog
- Save Diagram as Image - Save the diagram image to file in JPG or BMP format.
- Modify Diagram Printing Preferences - Modify page layout information for printing diagrams. Includes margins, orientation, etc...
- Show/Hide Page Grid - Show current page boundaries as grid in diagram.

Context menus for Transformation Diagrams limit Edit capability to the target table or procedure. Context menus for selected sources are focused on adding or removing them as sources from the transformation.

Mapping Diagram

Mapping Diagram toolbar actions include:

- Refresh Diagram - Re-draws diagram.
- Show Parent Diagram - Navigates to diagram for parent object (if available).
- Show Mapping Transformation Diagram - Show detailed mapping transformation diagram for selected mapping class.
- Generate Mapping Classes - Generate mapping classes for the selected XML document root element.
- New Mapping Class - Insert new mapping class referenced to the selected XML document element or attribute.
- New Staging Table - Insert new mapping class referenced to the selected XML document element or attribute.
- Merge Mapping Classes - Merge selected mapping classes.
- Split Mapping Class - Split selected mapping class.
- Display All Mapping Classes
- Show Mapping Class Columns
- Filter Displayed Mapping Classes with Selection

Context menus for Mapping Diagrams provide Edit capability to the mapping class in addition to mapping class manipulation actions (i.e. Merge Mapping Classes, Split Mapping Class, etc..)

Mapping Transformation Diagram

Mapping Transformation Diagram toolbar actions include:

- Refresh Diagram - Re-draws diagram.
- Show Parent Diagram - Navigates to diagram for parent object (if available).
- New Mapping Link - Create a mapping link between selected mapping extent (i.e. XML element or attribute) and mapping class column.
- Remove Mapping Link - Delete mapping link between selected mapping extent (i.e. XML element or attribute) and mapping class column.
- Add To Diagram - Add selected sources to transformation.
- Add Transformation Sources - Add selected sources to transformation.
- Add Union Transformation Sources - Add selected sources as union sources.
- Remove Transformation Sources - Removed sources selected in diagram from transformation.
- Open Transformation Reconciler dialog
- Save Diagram as Image - Save the diagram image to file in JPG or BMP format.
- Modify Diagram Printing Preferences - Modify page layout information for printing diagrams. Includes margins, orientation, etc...
- Show/Hide Page Grid - Show current page boundaries as grid in diagram.

Context menus for Mapping Transformation Diagrams limit Edit capability to the target mapping class. Context menus for selected sources are focused on adding or removing them as sources from the transformation.

Related Topics

- Create a New VDB
- Dimension Designer Perspectives
- Model Editors
- Web Service Advisor view
- Diagram Preferences
- Getting Started with Metamatrix Dimension

(c) Copyright © 2000-2006 MetaMatrix, Inc. All rights reserved.
Visit http://www.metamatrix.com