Diagram Display Configuration

Introduction

Due to the number of graphic properties on diagrams that are not accessible from Rational Software Architect, these properties have been set by default in a properties file. By editing this file, it is possible to configure the display of diagrams in MagicDraw.

This guide explains how to configure the display of diagrams in MagicDraw.

Overview

The Java System Property rsa2md.graphical.properties.path must be defined in the publisher.ini file, in order to configure the display in MagicDraw. If the System Property rsa2md.graphical.properties.path is not correctly set, models cannot be published into MagicDraw.

If not set correctly, you will encounter the message shown below to help guide you to update this System Property.

The Graphical Properties are defined per UML Diagram Type. For more information on UML Diagram Types, see the Administration section.
In addition, Graphical Properties for all kinds of Diagrams can be defined.
If a Graphical Property has been defined for a type of Element, and another Graphical Property (with a different value) is defined for the same Element, the last one will be taken into account.
For example, if we have the following Graphical Properties for a Class Diagram and a General Diagram, in the properties.ini file:

CLASS_DIAGRAM.Class.showStereotype=true
DIAGRAM.Class.showStereotype=false

Stereotypes for Classes won't be displayed.
If a Graphical Property is read from the input Rational Software Architect Model, but also defined in the Configuration File, the Graphical Property in the Configuration file is the value used.

Default Properties

A Properties File is used to define the way Diagrams are displayed in MagicDraw.
A File called properties.ini is provided with the installation files.
Some default Graphical Properties have been defined in the File.

Default Activity Diagram's Graphical Properties

ACTIVITY_DIAGRAM.ActivityNode.showStereotype=false

Set to false, hide Activity Nodes Stereotypes in Activity Diagrams.
Set to true, show Activity Nodes Stereotypes in Activity Diagrams.
Default false.

ACTIVITY_DIAGRAM.ControlFlow.showName=true

Set to false, hide Control Node Names in Activity Diagrams.
Set to true, show Control Node Names in Activity Diagrams.
Default true.

ACTIVITY_DIAGRAM.Swimlane.showStereotype=true

Set to false, hide Swimlanes Stereotypes in Activity Diagrams.
Set to true, show Swimlanes Stereotypes in Activity Diagrams.
Default true.

Default Class Diagram's Graphical Properties

CLASS_DIAGRAM.Class.showStereotype=true

Set to false, hide Classes Stereotypes in Class Diagrams.
Set to true, show Classes Stereotypes in Class Diagrams.
Default true.

CLASS_DIAGRAM.Class.showStructure=true

Set to false, hide Class Attributes and Operations in Class Diagrams.
Set to true, show Class Attributes and Operations in Class Diagrams.
Default true.

CLASS_DIAGRAM.DataType.showStructure=true

Set to false, hide DataType Attributes and Operations in Class Diagrams.
Set to true, show DataType Attributes and Operations in Class Diagrams.
Default true.

Default Component Diagram's Graphical Properties

COMPONENT_DIAGRAM.Component.showStereotype=true

Set to false, hide Components Stereotypes in Component Diagrams.
Set to true, show Components Stereotypes in Component Diagrams.
Default true.

Default Composite Structure Diagram's Graphical Properties

COMPOSITE_STRUCTURE_DIAGRAM.Connector.showName=true

Set to false, hide Connector Names in Composite Structure Diagrams.
Set to true, show Connector Names in Composite Structure Diagrams.
Default true.

COMPOSITE_STRUCTURE_DIAGRAM.InformationFlow.showName=true

Set to false, hide Information Flow Names in Composite Structure Diagrams.
Set to true, show Information Flow Names in Composite Structure Diagrams.
Default true.

COMPOSITE_STRUCTURE_DIAGRAM.Property.showStereotype=false

Set to false, hide Properties Stereotypes in Composite Structure Diagrams.
Set to true, show Properties Stereotypes in Composite Structure Diagrams.
Default false.

Default Diagram's Graphical Properties

DIAGRAM.Abstraction.showStereotype=false

Set to false, hide Abstractions Stereotypes in Diagrams.
Set to true, show Abstractions Stereotypes in Diagrams.
Default false.

DIAGRAM.Actor.showStereotype=STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE_AND_TEXT

Set to STEREOTYPE_DISPLAY_MODE_TEXT_AND_ICON, show Actor Stereotype Name and Icon in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_TEXT, show Actor Stereotype Name in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_ICON, show Actor Stereotype Icon in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE_AND_TEXT, show Actor Stereotype Image and Name in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE, show Actor Stereotype Image in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY_STEREOTYPES, hide Actor Stereotype in Diagrams.
Default STEREOTYPE_DISPLAY_MODE_SHAPE_IMAGE_AND_TEXT.

DIAGRAM.Association.showStereotype=false

Set to false, hide Associations Stereotypes in Diagrams.
Set to true, show Associations Stereotypes in Diagrams.
Default false.

DIAGRAM.Comment.showStereotype=false

Set to false, hide Comments Stereotypes in Diagrams.
Set to true, show Comments Stereotypes in Diagrams.
Default false.

DIAGRAM.DataType.showStereotype=false

Set to false, hide DataTypes Stereotypes in Diagrams.
Set to true, show DataTypes Stereotypes in Diagrams.
Default false.

DIAGRAM.Dependency.showStereotype=false

Set to false, hide Dependencies Stereotypes in Diagrams.
Set to true, show Dependencies Stereotypes in Diagrams.
Default false.

DIAGRAM.EDGE.showTaggedValues=false

Set to false, hide Edges Tagged Values in Diagrams.
Set to true, show Edges Tagged Values in Diagrams.
Default false.

DIAGRAM.Extend.showStereotype=STEREOTYPE_DISPLAY_MODE_TEXT

Set to STEREOTYPE_DISPLAY_MODE_TEXT_AND_ICON, show Extend Stereotype Name and Icon in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_TEXT, show Extend Stereotype Name in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_ICON, show Extend Stereotype Icon in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY_STEREOTYPES, hide Extend Stereotype in Diagrams.
Default STEREOTYPE_DISPLAY_MODE_TEXT.

DIAGRAM.Generalization.showStereotype=false

Set to false, hide Generalizations Stereotypes in Diagrams.
Set to true, show Generalizations Stereotypes in Diagrams.
Default false.

DIAGRAM.Include.showStereotype=STEREOTYPE_DISPLAY_MODE_TEXT

Set to STEREOTYPE_DISPLAY_MODE_TEXT_AND_ICON, show Include Stereotype Name and Icon in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_TEXT, show Include Stereotype Name in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_ICON, show Include Stereotype Icon in Diagrams.
Set to STEREOTYPE_DISPLAY_MODE_DO_NOT_DISPLAY_STEREOTYPES, hide Include Stereotype in Diagrams.
Default STEREOTYPE_DISPLAY_MODE_TEXT.

DIAGRAM.LINE_JUMP_PLACE=LINE_JUMP_PLACE_HORIZONTAL

Set to LINE_JUMP_PLACE_NONE, No line jump is added to intersections of links in Diagrams.
Set to LINE_JUMP_PLACE_HORIZONTAL, line jumps appear on horizontal lines in Diagrams.
Set to LINE_JUMP_PLACE_VERTICAL, line jumps appear on vertical lines in Diagrams.
Default LINE_JUMP_PLACE_HORIZONTAL.

DIAGRAM.NODE.SHOW_ATTRIBUTES_TYPE=false

Set to false, hide Node Attribute's Types in Diagrams.
Set to true, show Node Attribute's Types in Diagrams.
Default false.

DIAGRAM.NODE.showTaggedValues=false

Set to false, hide Tagged Values for Nodes in Diagrams.
Set to true, show Tagged Values for Nodes in Diagrams.
Default false.

DIAGRAM.NODE.SUPPRESS_CONSTRAINTS_COMPARTMENT=true

Set to false, show Constraints for Nodes in Diagrams.
Set to true, hide Constraints for Nodes in Diagrams.
Default true.

DIAGRAM.NODE.SUPPRESS_PARTS_COMPARTMENT=true

Set to false, show Parts for Nodes in Diagrams.
Set to true, hide Parts for Nodes in Diagrams.
Default true.

DIAGRAM.NODE.SUPPRESS_PROPERTIES_COMPARTMENT=true

Set to false, show Properties for Nodes in Diagrams.
Set to true, hide Properties for Nodes in Diagrams.
Default true.

DIAGRAM.NODE.SUPPRESS_VALUES_COMPARTMENT=true

Set to false, show Values for Nodes in Diagrams.
Set to true, hide Values for Nodes in Diagrams.
Default true.

DIAGRAM.NODE.SUPPRESS_REFERENCES_COMPARTMENT=true

Set to false, show References for Nodes in Diagrams.
Set to true, hide References for Nodes in Diagrams.
Default true.

DIAGRAM.Package.showStereotype=false

Set to false, hide Package Stereotypes in Diagrams.
Set to true, show Package Stereotypes in Diagrams.
Default false.

Default Sequence Diagram's Graphical Properties

SEQUENCE_DIAGRAM.AUTOSIZE=false

Set to false, hide Property Stereotypes in Sequence Diagrams.
Set to true, show Property Stereotypes in Sequence Diagrams.
Default false.

SEQUENCE_DIAGRAM.SHOW_ACTIVATIONS=false

Set to false, hide Lifeline Activations in Sequence Diagrams.
Set to true, show Lifeline Activations in Sequence Diagrams.
Default false.

SEQUENCE_DIAGRAM.SHOW_DIAGRAM_FRAME=false

Set to false, hide Diagram Frame in Sequence Diagrams.
Set to true, show Diagram Frame in Sequence Diagrams.
Default false.

SEQUENCE_DIAGRAM.SHOW_MESSAGE_NUMBERS=false

Set to false, hide Message Numbers in Sequence Diagrams.
Set to true, show Message Numbers in Sequence Diagrams.
Default false.

Default State Machine Diagram's Graphical Properties

STATE_MACHINE_DIAGRAM.State.showStereotype=false

Set to false, hide State Stereotypes in State Machine Diagrams.
Set to true, show State Stereotypes in State Machine Diagrams.
Default false.

STATE_MACHINE_DIAGRAM.Transition.showName=true

Set to false, hide Transition Names in State Machine Diagrams.
Set to true, show Transition Names in State Machine Diagrams.
Default true.

STATE_MACHINE_DIAGRAM.Transition.SHOW_CONSTRAINTS=false

Set to false, hide Transition Constraints in State Machine Diagrams.
Set to true, show Transition Constraints in State Machine Diagrams.
Default false.

Default Use Case Diagram's Graphical Properties

USE_CASE_DIAGRAM.UseCase.showStereotype=false

Set to false, hide Use Case Stereotypes in Use Case Diagrams.
Set to true, show Use Case Stereotypes in Use Case Diagrams.
Default false.

USE_CASE_DIAGRAM.UseCase.SUPPRESS_EXTENSIONS=true

Set to false, show Use Case Extensions in Use Case Diagrams.
Set to true, hide Use Case Extensions in Use Case Diagrams.
Default true.

USE_CASE_DIAGRAM.Extend.SHOW_EXTENSION_POINT=false

Set to false, hide Extends Extension Points in Use Case Diagrams.
Set to true, show Extends Extension Points in Use Case Diagrams.
Default true.