Setting graphic options for diagrams

General presentation

Diagrams graphic options are displayed in the Symbol view as shown in the screenshot below:

The Symbol view on a class

Detailed presentation

A close up screenshot of the Symbol view

Key:

  1. The Symbol view tab
  2. The diagram types dropdown list
  3. The “Cancel the local changes” button
  4. The “Show/hide the property description area” button
  5. The graphic properties of the selected element

Properties description

The Symbol view is a powerful tool that lets you change numerous graphic properties for your diagram elements. To get a description of each property, activate the “Show/hide the property description area” as shown in the screenshot below:

Activating the “Show/hide the property description area”

Steps:

  1. Click on the “Show/hide the property description area” button.
  2. The Description area is displayed, showing the description of the selected property.

Modifying graphic properties

When diagrams are created, they use a default style. The same style is used by all the elements created in the diagram.

The style used is shown in the Symbol view toolbar:

The diagram styles dropdown list showing the style used

The graphic properties of the diagram elements can be changed locally in the Symbol view. Locally modified graphic properties are displayed in bold. In this way, they can be quickly spotted.

Examples of graphic properties modifications:

Changing the representation mode of a class

The different representation modes of a class

Modifying the fill color property of a class

Steps:

  1. Change the class fill color.
  2. The class fill color change is applied in the diagram.
  3. The fill color property now appears in bold to indicate it was locally changed.

Local changes can be cancelled by clicking on the “Cancel the local changes” button in the Symbol view toolbar :

Cancelling local changes

Steps:

  1. Click on the “Cancel the local changes” button.
  2. The fill color is back to default style.
  3. The fill color property is no longer in bold.

Creating your own diagram style

Modelio lets you create your own diagram style. To create your own diagram style, simply carry out the steps shown in the screenshots below:

Firstly, open the diagram styles window.

Opening the diagram styles window

Steps:

  1. Click on the “Configuration” menu in the menubar.
  2. Now click on “Diagram styles…”.
  3. The diagram styles window opens.

Create a new style.

Creating a new diagram style

Steps:

  1. Right-click on the “Default” style.
  2. Click on “Derive a new style…”.
  3. Enter a name for the new style.
  4. Click on “OK” to complete the style creation.

Now make the necessary changes to the new style.

Making changes in the newly created style

Steps:

  1. Select the new style.
  2. Make your changes in the style properties.
  3. The modified properties appear in bold text.
  4. Click on “Save” to save your new style and deploy it in your project.
  5. Click on “Close” to exit the diagram styles window.

Note: Diagrammes styles are saved as “StyleName.style” files in the “.config/styles” directory of your project space.

Finally, apply your new style to new or existing diagrams.

Applying the new style to an existing diagram

Steps:

  1. In the Symbol view toolbar, click on the diagram style dropdown list and choose your style.
  2. The style is applied to the diagram.

graph_prop_003.png (7.47 KB) admin admin, 12 June 2012 16:22

graph_prop_006.png (25.5 KB) admin admin, 12 June 2012 16:22

graph_prop_002.png (33.5 KB) admin admin, 12 June 2012 16:22

graph_prop_010.png (36.6 KB) admin admin, 12 June 2012 16:22

graph_prop_008.png (7.8 KB) admin admin, 12 June 2012 16:22

graph_prop_009.png (71.6 KB) admin admin, 12 June 2012 16:23

graph_prop_012.png (83.6 KB) admin admin, 12 June 2012 16:23

graph_prop_011.png (59.3 KB) admin admin, 12 June 2012 16:23

graph_prop_001.png (64.9 KB) admin admin, 12 June 2012 16:23

graph_prop_007.png (23.3 KB) admin admin, 12 June 2012 16:23

graph_prop_005.png (23.9 KB) admin admin, 12 June 2012 16:23

graph_prop_004.png (54.4 KB) admin admin, 12 June 2012 16:23