The persons (workers) are to be connected to the devices (PC, Telephone) by means of polylines, which can have any number of bend points, and the LAN jacks (LAN_Jack) of the devices (PC, Telephone, Printer, 2way_LANJack, 5waySwitch) between one another through direct lines.
- Replace the configuration of the router <router id="router"> with the following lines.
<!-- Router -->
<!-- Router for connecting worker and device -->
<router id="Bendpoint" class="com.mind8.graph2d.router.Bendpoint" />
<!-- Router for connecting slave and device -->
<router id="ShortestPath" class="com.mind8.graph2d.router.ShortestPath" />
- In the tag <diagramEditor>, change the attribute router=”router” to router="ShortestPath".
The ID of the first router is Bendpoint, that of the second is ShortestPath.
The types of router are specified by the same respective class names. For more types, see the section router in the Reference chapter.
Since the ID router has been replaced, the reference to the ID of the router in the tag <diagramEditor> has to be changed. The default router should be the one with the ID ShortestPath.