Changes for page KLay Layered Layout Options
Last modified by Richard Kreissig on 2023/09/14 10:20
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -798,12 +798,14 @@ 798 798 799 799 {{id name="layerConstraint"/}} 800 800 801 -{{warning}} 802 -Document! 803 -{{/warning}} 801 +The layer a node is placed in is usually computed by the layer assignment algorithms. However, sometimes certain nodes need to be placed in the first or in the last layer (for example, nodes that represent inputs from the outside). The layer constraint option can be set on such nodes to do just that. 804 804 805 - 803 +[[image:attach:layer_constraints.png]] 806 806 805 +{{note}} 806 +This option can also be set to {{code language="none"}}FIRST_SEPARATE{{/code}} and {{code language="none"}}LAST_SEPARATE{{/code}}. These are for internal use only and should not have been publicly exposed in the first place. Using them can result in layout problems. 807 +{{/note}} 808 + 807 807 == Maximal Iterations == 808 808 809 809 ... ... @@ -853,10 +853,17 @@ 853 853 854 854 {{id name="nodePlacement"/}} 855 855 856 -{{warning}} 857 -Document! 858 -{{/warning}} 858 +Decides which algorithm is used to compute the y coordinate of each node. This influences the length of edges, the number of edge bends, and the height of the diagram. We have different algorithms available, with different optimization goals: 859 859 860 +* BRANDES_KOEPF 861 +Minimizes the number of edge bends at the expense of diagram size: diagrams drawn with this algorithm are usually higher than diagrams drawn with other algorithms. 862 +* LINEAR_SEGMENTS 863 +Computes a balanced placement. 864 +* BUCHHEIM_JUENGER_LEIPERT 865 +Also computes a balanced placement, but a little faster. 866 +* SIMPLE 867 +Minimizes the area at the expense of... well, pretty much everything else. 868 + 860 860 == Port Anchor Offset == 861 861 862 862 ... ... @@ -863,12 +863,12 @@ 863 863 864 864 {{id name="portAnchor"/}} 865 865 866 -{{warning}} 867 -Document! 868 -{{/warning}} 875 +Since ports have a size, we need a concrete point inside the port that edges should start or end in. In KLay Layered, this is referred to as the //port anchor//. By default, the center of each port is used as its port anchor, but this behavior can be overridden by setting an explicit port anchor. 869 869 870 - 877 +In the following example, the port anchor of the left port was moved upwards, while the port anchor of the second port was moved downwards: 871 871 879 +[[image:attach:port_anchors.png]] 880 + 872 872 == Thoroughness == 873 873 874 874
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -94701 381 +9470144 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/94701 38/KLay Layered Layout Options1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9470144/KLay Layered Layout Options