Binary Relation (horizontal and vertical connection)

Meaning

The Binary Relation (horizontal and vertical connection) shows that two entity sets are connected to it take part in a relation.

This shape consists of the relation and two edges for simple use.

This shape layouts automatically when connected with both ends. It will choose a vertical or horizontal layout and connect to the appropriate connection points.

Utilization

Control Points

A ) moves the rectangular box along the axis
B1-B5 )
  • moves the position of the corresponding text box
  • appears only when text has been entered
  • to enter text, first click on the shape, then single-click on the text box and start typing or type F2 to edit an existing text

Context Menu

The context menu lets you set the type of the Binary Relation.

  n:m Relation - The relation box will become empty. You are encouraged to add the cardinalities in this case.
1:n Relation - This results in an arrow.
n:1 Relation - The same as 1:n Relation, just the arrow will point in the other direction.
1:1 Relation - This results in a double-headed arrow.

Depending on the layout, whether the Binary Relation is horizontally or vertically, you can set the alignment. Accordingly there is always only one of the following shown in the context menu.

  Align Top - The shape will be aligned at the top end-point.
Align Center - The shape will be aligned at the center (always shown by the dotted line).
Align Bottom - The shape will be aligned at the bottom end-point.

  Align Left - The shape will be aligned at the left end-point.
Align Center - The shape will be aligned at the center (always shown by the dotted line).
Align Right - The shape will be aligned at the right end-point.

The shape can be automatically (this is the default setting) or manually layouted. To control this, use the context menu as well:

  Make Horizontal - If automatic layout is turned off, you can manually set the shape to horizontal.
Make Vertical - If automatic layout is turned off, you can manually set the shape to vertical.
Automatic Layout - The shape will layout itself either horizontally or vertically and choose appropriate connection points of the shapes it is connected to. This depends on the position of the other shapes.

See also

Binary Relation (direct connection)
Curved Binary Relation (horizontal connection)
Curved Binary Relation (vertical connection)