Chapter 3. Using Gaphor

Table of Contents

3.1. Tree view
3.2. Tools
3.3. Diagrams

Once you have Gaphor running, you'll get a window as shown in Figure 3.1. The window is devided into three sections: a tree view (1), a tools section (2) and a diagram view (3). Each section is explaned below.

Figure 3.1. The main window

The tree view area in the upper left corner displays the elements grouped by their namespace. Packages, classes, interfaces, etc. are stored in their hierarchical order.

From the tree view items can be dropped on the diagram window. This will display the element on the diagram. Some elements (packages, classes, interfaces, a.o.) can be reordered by dragging them to a new place in the tree view.

What can be done on an item is shown by right-clicking on the item. On a package, it is possible to create a new diagram. Other items can only be renamed.

Items can not be deleted, nor can new items be created through the tree view. This is due to the fact that UML is a graphical language, so every element should be displayed in one or more diagrams.

The option Refresh will rebuild the content of the tree view (in case the content is invalid due to (for example) a bug in Gaphor).