You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modeling/customizing-presentation-on-the-diagram.md
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,9 @@ manager: jillfra
10
10
ms.workload:
11
11
- "multiple"
12
12
---
13
-
# Customizing Presentation on the Diagram
14
-
The diagram is the main presentation area of a domain-specific language designer. Usually, users will use the diagram to construct their models. You can customize the diagram as described in the following topics.
13
+
# Customize presentation on the diagram
14
+
15
+
The diagram is the main presentation area of a domain-specific language designer. Usually, users will use the diagram to construct their models. You can customize the diagram as described in the following articles:
15
16
16
17
-[Defining Shapes and Connectors](../modeling/defining-shapes-and-connectors.md)
17
18
@@ -23,10 +24,8 @@ The diagram is the main presentation area of a domain-specific language designer
23
24
24
25
-[Setting a Background Image on a Diagram](../modeling/setting-a-background-image-on-a-diagram.md)
25
26
26
-
-[Nesting Shapes](../modeling/nesting-shapes.md)
27
-
28
27
-[Embedding a Diagram in a Windows Form](../modeling/embedding-a-diagram-in-a-windows-form.md)
29
28
30
-
## See Also
29
+
## See also
31
30
32
31
-[Navigating and Updating a Model in Program Code](../modeling/navigating-and-updating-a-model-in-program-code.md)
Copy file name to clipboardExpand all lines: docs/modeling/defining-shapes-and-connectors.md
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,13 @@ manager: jillfra
8
8
ms.workload:
9
9
- "multiple"
10
10
---
11
-
# Defining Shapes and Connectors
11
+
# Define shapes and connectors
12
+
12
13
There are several basic types of shapes that you can used to display information on a diagram in a domain-specific language (DSL).
13
14
14
15
## <aname="shapeTypes"></a> Basic Types of Shapes and Connectors
15
-
A DSL diagram shows a collection of *shapes* interlinked by lines or *connectors*. Typically, but not always:
16
+
17
+
A DSL diagram shows a collection of *shapes* interlinked by lines or *connectors*. Typically, but not always:
16
18
17
19
- Shapes are the visible representation of model elements.
18
20
@@ -22,18 +24,19 @@ There are several basic types of shapes that you can used to display information
22
24
23
25
- Embedding relationships between model elements are shown by containment. For example, elements representing component ports are embedded in the component.
24
26
25
-
These patterns are not enforced, but are more strongly supported. When you design a DSL, bear in mind that the design of the embedding relationships should be influenced by how you want to present the model on the screen. By contrast, the reference relationships should reflect the concepts of your business domain.
27
+
These patterns are not enforced, but are more strongly supported. When you design a DSL, bear in mind that the design of the embedding relationships should be influenced by how you want to present the model on the screen. By contrast, the reference relationships should reflect the concepts of your business domain.
26
28
27
-
The following types of shapes are available:
29
+
The following types of shapes are available:
28
30
29
31
|Shape type|Description|
30
32
|-|-|
31
-
|Geometry shape|General purpose rectangular or elliptical shape. You can display text and icon decorators in specific positions relative to the bounds of the shape.<br /><br /> To nest shapes inside geometry shapes, see [Nesting Shapes](../modeling/nesting-shapes.md).|
33
+
|Geometry shape|General purpose rectangular or elliptical shape. You can display text and icon decorators in specific positions relative to the bounds of the shape. You can also nest shapes inside geometry shapes.|
32
34
|Compartment shape|Rectangle containing a header and compartments, like a UML class. Each compartment can contain a list of text rows.<br /><br /> The rows typically represent elements embedded under the element represented by the shape. For an example, create a DSL from the Class Diagrams solution template.|
33
35
|Image shape|Shape that displays an image.|
34
36
|Port shape|A small rectangle designed to attach to the outline of another shape. Typically used in component models.<br /><br /> The model element represented by a port is typically embedded under the element represented by the parent shape. For an example, create a DSL by using the Components solution template.<br /><br /> By default, a port shape can slide along the sides of its parent. You can define a Bounds Rule to constrain it to a particular position.<br /><br /> By making a port shape very small and transparent, you can use it to provide a fixed connection point on the surface of its parent shape.|
35
37
|Swimlanes|Swimlanes partition a diagram into horizontal or vertical segments. The swimlane always stays underneath the other shapes on the diagram.<br /><br /> Typically the model elements of the swimlane are parented on the model root, and the other elements are parented on them. For an example, create a DSL from the Task Flow solution template.|
36
38
|Connectors|The lines drawn between shapes typically represent reference relationships. You can set options to make a connector straight or rectilinear, and to have different types of arrowhead.|
A shape can inherit from another shape. However, the shapes must be the same kind. For example, only a geometry shape can inherit from a geometry shape. Inherited shapes have the compartments and decorators of their base shape. Connectors can inherit from connectors.
40
+
## Shape inheritance
41
+
42
+
A shape can inherit from another shape. However, the shapes must be the same kind. For example, only a geometry shape can inherit from a geometry shape. Inherited shapes have the compartments and decorators of their base shape. Connectors can inherit from connectors.
0 commit comments