The yEd graph editor allows simple creation of UML nodes (and edges) like they are used in specific UML diagrams.
UML class nodes, use case nodes, actors, or notes can be created by dragging sample representations from the 'UML' section in the Palette tool window into the active editor window (using a mouse drag gesture).
This palette section also holds representations for edges specific to the UML notation. To create a corresponding edge:
- drag the representation for an edge type onto a node in the active editor,
- release the mouse, thus denoting the start node for the edge, then
- drag to another node (optionally creating bends in the edge by clicking on empty locations in the editor), and
- with a final mouse click denote the target node for the edge.
You can enter data for a UML class nodes using the following steps:
- Select the class node in the active editor (mouse click).
Use F2 [Mac OS: ENTER] to activate a label editor and set the label for the
The label will be the name of the class.
Alternatively, the label can also be entered in the next step.
- Press F6 [Mac OS: Command-I] to open the 'Properties...' dialog for the selected node.
- In the 'UML' tab insert attributes and methods of the class one per line (terminate the line with ENTER).
- Stereotype and constraint can be set in this dialog, too.
Note that the 'Properties...' dialog for a selected node can also be opened using the respective entry from the node's context-sensitive menu.