Tree Style Hierarchy

Return to Introduction  Previous page  Next page

In Enterprise Architect you can create a tree style inheritance diagram using a special form of the Generalization link, as shown below.

TreeStyleHierarchy

Note: The Son ->Parent link has not yet been put in Tree Style - Vertical style.

This style of diagram provides a clearer layout for inheritance hierarchies and is easy to work with.

Create a Tree Style Link

To create a tree style link, follow the steps below:

1.Create a normal Generalization between two elements.
2.Right-click on the link to open the context menu.
3.Select the Set Line Style | Tree Style - Vertical or the Set Line Style | Tree Style - Horizontal menu option.
4.Enterprise Architect automatically makes the Generalization layout conform to a specific shape. By adding more Generalization links, and checking their Tree Style options, you can achieve the appearance of the diagram above. You can slide the root and child classes left and right to achieve the required result; Enterprise Architect maintains the conformity of the branch links.

Set the Default Link Style

To set this style of link as default, follow the steps below:

1.Select the Tools | Options | Links menu option. The Links page of the Options dialog displays.
 
DefaultLinkStyle
 
2.Select the Generalization link style Default = Tree checkbox to make this branching style the default style for inheritance links.