This tutorial will help you start UML modeling in GenMyModel and will guide you step by step through the different common elements in the UML world. Most of actions in GenMyModel can be done using keyboard shortcuts.
Note : Unlike a simple drawing tool, GenMyModel relies on the UML 2.5 standard to help you create compliant UML models |
Create a new project UML project from the GenMyModel dashboard and choose Class diagram.
Once it's done, press the Open in Editor button to open the GenMyModel work environment.
- How to create a new project and open it in the editor ?
- Not familiar with GenMyModel work environment ?
Toolbar Keyboard Shortcuts | UML Class Diagram example - Customer Account |
Info : Press Shift + ? to show the complete keyboard shortcuts map at any time. |
Create Package
Way 1 - Toolbar
Drag&Drop the Package tool from the toolbar to the work zone / package OR select the Package tool from the toolbar > click on the work zone / package.
Way 2 - Right-click menu (inside the work zone)
Inside the work zone, use right-click menu > Add > Package.
Way 3 - Right-click menu (inside the Package element)
If you already created the Package element, you can create some other elements (and even diagrams) inside the Package element, using the inside right-click menu.
Right-click inside the element > Add > Package.
Way 4 - Keyboard shortcut
Press the P key > click on the work zone .
Tip : To create multiple elements faster, after selecting a tool, hold Ctrl key and click on the work zone as much as necessary |
Create Class and Rename it
Way 1 - Toolbar
Drag&Drop the Class tool from the toolbar to the work zone OR select the Class tool from the toolbar > click on the work zone .
Way 2 - Right-click menu (inside work zone)
Inside the work zone , u se right-click menu > Add > Class.
Way 3 - Right-click menu (inside the Package element)
If you already created the Package element, you can create some other elements using the inside right-click menu.
Right-click inside the package element > Add > Package.
Way 4 - Keyboard shortcut
Press the C key > click on the work zone .
Rename the class
Way 1 - Double-click on the class name to change it
Way 2 - Select the class > change the name in the Properties side panel (bottom left)
Add Attribute / Operation
Way 1 - Contextual toolbar
Select the class > use Add a new attribute (public, protected, private) from the Contextual toolbar.
Info : Contextual toolbar appears around the element when you select it |
Select the class > use Add a new operation from the Contextual toolbar.
Way 2 - Toolbar
Drag&Drop the Attribute / Operation tool from the toolbar into the class OR select the Attribute / Operation tool from the toolbar > click on the class to add it.
Way 3 - Keyboard shortcut
Press the A key for attribute (public) / O key for operation > click on the class to add it.
Attribute / Operation Name and Type
Attribute
Double-click on the left part of the attribute > change the name.
Double-click on the right part of the attribute > change the type.
In addition to name and type, you can change other properties in the Properties panel (bottom left).
Operation
Double-click on the left part of the operation > change the name.
Double-click on the right part of the operation > change the type.
Attribute / Operation Visibility
Select the attribute / operation > click on Visibility drop-dawn menu in Properties side panel > choose between - public, private, protected, package.
Create Association relationship
Way 1 - Press the S key > click on the class > click on another class to relate it.
Way 2 - Select the class > use Create a new association from the Contextual toolbar > click on another class to relate it.
Way 3 - select the Association tool from the toolbar > click on the class > click on another class to relate it.
Create Composition relationship
Way 1 - Press the T key > click on the composite class > click on the component class to relate it.
Way 2 - Select the Composition tool from the toolbar > click on the composite class > click on the component class to relate it.
Create Enumeration
Way 1 - Toolbar
Drag&Drop the Enumeration tool from the toolbar to the work zone OR select the Enumeration tool from the toolbar > click on the work zone.
Double-click on the enumeration to rename it.
Way 2 - Right-click menu
Inside the work zone, u se right-click menu > Add > Enum > click on the work zone > double-click on the enumeration to rename it.
Way 3 - Keyboard shortcut
Press the E key > click on the work zone > double-click on the enumeration to rename it.
Tip : To create multiple elements faster, after selecting a tool, hold Ctrl key and click on the work zone as much as necessary |
Create Enumeration Literal
Way 1 - Toolbar
Drag&Drop the Enumeration Literal tool from the toolbar to the enumeration element OR select the Enumeration Literal tool from the toolbar > click on the enumeration element.
Double-click on the enumeration literal to rename it.
Way 2 - Keyboard shortcut
Press the L key > click on the enumeration element > double-click on the enumeration literal to rename it.
Change Class appearance
To change the appearance of the class (and any other element), select it and choose the color from the Properties side panel (bottom left).
Move Classes
To move any element of the diagram, select it and drag to the necessary position.
Move Relationships and its Properties
To move and to adjust relationships lines, select it and play with Horizontal toolbar that will appear (see picture below) OR move it manually by dragging the line bold points.
To move relationship properties (name and multiplicity values), select it and drag (see pictures below).
Change relationships values
Select the relationship line and change the necessary values in the Properties side panel (bottom left).