Adding Entities
You can add Classes and relationships in the Class Diagram Editor using one of the following methods:
To add an existing class, drag the class (or classes) from other model views (such as the Class View) into the Class Diagram Editor.
Or
To add a new class or relationship, drag the required entity from the UML Designer Toolbox into the Class Diagram Editor. You can also double-click the required entity on the UML Designer toolbox to place the new entity in the Class Diagram Editor.
Removing Entities
You can remove the classes and relationships by selecting the required entity (or entities) and pressing DELETE, or by right-clicking them and selecting Remove. On clicking Remove, you are prompted to confirm the deletion of the required entity (or entities). They are removed from the class diagram only but retained in the model.
Selecting Multiple Entities
There are two ways to select multiple entities in Class Diagram Editor:
To select multiple entities that are adjacent, drag a boundary around the entities that you want to select.
To select multiple entities that are not adjacent, select a single entity, press SHIFT or CTRL key, then click the other entities that you want to select.
Moving Entities
To move the entities in the Class Diagram Editor, drag them to position them as required.
Relationships between classes are automatically redrawn as their constituent classes are moved. To make any changes in an existing relationship, select the relationship in the Class Diagram Editor, and then drag the handles which are displayed as green boxes at each end of the relationship. When dragged, these handles will snap to the class closest to the current cursor position.
Refer to Class Diagram Editor Settings for more information on how to use the grid to help position entities.
Modifying Appearance
You can modify the appearance of class diagram members by selecting the required entities, right-clicking, and expanding Format, and then selecting one of the following options:
Text
This option displays the Display Options dialog box with the Text tab in the foreground.
You can adjust the text format, such as font, size, and color and style, such as bold, italic, strikethrough, and underline as required.
Line
This option displays the Display Options dialog box with the Line tab in the foreground.
You can adjust the line style such as pattern, weight, and color as required.
Fill
This option displays the Display Options dialog box with the Fill tab in the foreground.
You can adjust the fill style like color as required.
Refer to Class Diagram Editor Settings for more information on how to set default colors.
Modifying Display
You can modify the display of class diagram members by selecting the required entity in the Class Diagram Editor, right-clicking and selecting Shape Display Options. This displays the UML Shape Display Options dialog box, which specifies the display of the selected class diagram member in the following categories: :
General
In this category, you can specify the display of name, stereotype, method parameters, and attribute visibilities as required.
Attributes
In this category, you can specify the display of the attribute types, initial values, and multiplicities as required.
Suppress
In this category, you can specify the display of the attributes and methods as required.
To apply these display settings to subsequently added entities, select the Apply to subsequently dropped element of the same type checkbox in the UML Shape Display Options dialog box.