The element <router> describes, which type of connection is to be used between the graphical objects of the diagram.
Further elements, which are required for specifying of connections:
Attribute name | Usage | Attribute values | Default value | Description |
---|---|---|---|---|
class | required | com.mind8.graph2d.router.Bendpoint com.mind8.graph2d.router.Fan com.mind8.graph2d.router.Manhattan com.mind8.graph2d.router.ShortestPath com.mind8.graph2d.router.BendpointShortesPathRouter com.mind8.graph2d.router.BendpointFix |
Constant name of the router. | class |
distance | optional | Integer | Only for Bendpoint Shortest Path Router: Distance of the connection point to the first bendpoint of the connection |
distance |
id | required | String | ID of the router | id |
Allowed sub-elements | Quantity |
---|---|
none |
Connections:
The graphical objects of a diagram can be connected. The connections are controlled by formulas, therefore m:n relations between objects are representable.
The following connection types are possible:
Connection type | Representation |
---|---|
Bendpoint Connects elements with a polygon line. Moving the existing objects also moves the bendpoints. |
|
BendpointFix Connects elements with a polygon line. Both segments, which are connected directly to the elements, are routed on the shortest path. Moving the existing objects does not affect the bendpoints. |
|
BendpointShortestPathRouterWithDistance Connects elements with a polyline, which consists of three segments. Both segments, which are connected directly to the elements, have a specified length (distance attribute). The middle segment is routed on the shortest path. |
|
Fan Is used to represent several connections between two elements, in the form of fanned out lines. |
|
ShortestPath Connects elements on the shortest path. |
|
Manhattan |
Within safety circuits connections of the types shortest or Manhattan can be used. To create a connection, the tool for connections in the palette has to be selected (see Palette). Then the objects are connected by click and drag.