Changes for page KIML Layout Options

Last modified by Alexander Schulz-Rosengarten on 2023/09/11 16:17

From version 23.1
edited by msp
on 2014/03/13 10:36
Change comment: There is no comment for this version
To version 20.1
edited by msp
on 2014/03/08 20:42
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -35,7 +35,7 @@
35 35  Default
36 36  )))
37 37  |(((
38 -[[Alignment>>doc:||anchor="alignment"]]
38 +Alignment
39 39  )))|(((
40 40  de.cau.cs.kieler.alignment
41 41  )))|(((
... ... @@ -46,7 +46,7 @@
46 46  AUTOMATIC
47 47  )))
48 48  |(((
49 -[[Aspect Ratio>>doc:||anchor="aspectRatio"]]
49 +Aspect Ratio
50 50  )))|(((
51 51  de.cau.cs.kieler.aspectRatio
52 52  )))|(((
... ... @@ -146,7 +146,7 @@
146 146  
147 147  )))
148 148  |(((
149 -[[Layout Hierarchy>>doc:||anchor="layoutHierarchy"]]
149 +Layout Hierarchy
150 150  )))|(((
151 151  de.cau.cs.kieler.layoutHierarchy
152 152  )))|(((
... ... @@ -381,7 +381,7 @@
381 381  )))
382 382  |(% colspan="1" %)(% colspan="1" %)
383 383  (((
384 -[[Comment Box>>doc:||anchor="commentBox"]]
384 +Comment Box
385 385  )))|(% colspan="1" %)(% colspan="1" %)
386 386  (((
387 387  de.cau.cs.kieler.commentBox
... ... @@ -467,7 +467,7 @@
467 467  )))
468 468  |(% colspan="1" %)(% colspan="1" %)
469 469  (((
470 -[[Hypernode>>doc:||anchor="hypernode"]]
470 +Hypernode
471 471  )))|(% colspan="1" %)(% colspan="1" %)
472 472  (((
473 473  de.cau.cs.kieler.hypernode
... ... @@ -565,7 +565,7 @@
565 565  )))
566 566  |(% colspan="1" %)(% colspan="1" %)
567 567  (((
568 -[[No Layout>>doc:||anchor="noLayout"]]
568 +No Layout
569 569  )))|(% colspan="1" %)(% colspan="1" %)
570 570  (((
571 571  de.cau.cs.kieler.noLayout
... ... @@ -661,22 +661,6 @@
661 661  )))
662 662  |(% colspan="1" %)(% colspan="1" %)
663 663  (((
664 -Thickness
665 -)))|(% colspan="1" %)(% colspan="1" %)
666 -(((
667 -de.cau.cs.kieler.thickness
668 -)))|(% colspan="1" %)(% colspan="1" %)
669 -(((
670 -Float
671 -)))|(% colspan="1" %)(% colspan="1" %)
672 -(((
673 -Edges
674 -)))|(% colspan="1" %)(% colspan="1" %)
675 -(((
676 -1.0
677 -)))
678 -|(% colspan="1" %)(% colspan="1" %)
679 -(((
680 680  Zoom to Fit
681 681  )))|(% colspan="1" %)(% colspan="1" %)
682 682  (((
... ... @@ -728,8 +728,6 @@
728 728  
729 729  = Detailed Documentation =
730 730  
731 -This section explains every layout option in more detail.
732 -
733 733  == The Most Important Options ==
734 734  
735 735  While most layout options are used to affect how the active layout algorithm computes concrete coordinates for the graph elements, there are some layout options that have a special role in KIML.
... ... @@ -738,13 +738,13 @@
738 738  
739 739  {{id name="layoutAlgorithm"/}}
740 740  
741 -The option with identifier {{code language="none"}}de.cau.cs.kieler.algorithm{{/code}} specifies which layout algorithm to use for a graph or subgraph. The value can be either the identifier of a layout algorithm or the identifier of a layout type. In the latter case the algorithm with highest priority of that type is applied. It is possible to set different values for this option on subgraphs of a hierarchical graph, where a subgraph is identified by a parent node. A layout algorithm is responsible to process only the direct content of a given parent node. An exception from this rule is made when the [[Layout Hierarchy>>doc:||anchor="layoutHierarchy"]] option is active.
723 +The option with identifier {{code language="none"}}de.cau.cs.kieler.algorithm{{/code}} specifies which layout algorithm to use for a graph or subgraph. The value can be either the identifier of a layout algorithm or the identifier of a layout type. In the latter case the algorithm with highest priority of that type is applied. It is possible to set different values for this option on subgraphs of a hierarchical graph, where a subgraph is identified by a parent node. A layout algorithm is responsible to process only the direct content of a given parent node. An exception from this rule is made when the Layout Hierarchy option is active.
742 742  
743 743  The following layout has been created by setting a force-based layout algorithm on the inner hierarchy level and a layer-based layout algorithm on the top level.
744 744  
745 745  [[image:attach:layout_algorithm.png]]
746 746  
747 -==== Available Algorithms and Libraries ====
729 +=== Available Algorithms and Libraries ===
748 748  
749 749  * **The [[KLay Project>>doc:Layout Algorithms (KLay)]]** - Java implementations of standard layout approaches, augmented with special processing of graph features such as ports and labels.
750 750  * **Randomizer** - Distributes the nodes randomly; not very useful, but it can show how important a good layout is for understanding a graph.
... ... @@ -755,7 +755,7 @@
755 755  * **OGDF** ((% style="color: rgb(0,0,0);" %)[[www.ogdf.net>>url:http://www.ogdf.net/||shape="rect"]](%%)) - A self-contained C++ class library for the automatic layout of diagrams. The version that is shipped with KIELER is compiled as an executable that reads files in OGML format and outputs the computed concrete layout.
756 756  * **Graphviz** ([[www.graphviz.org>>url:http://www.graphviz.org/||shape="rect"]]) - An open source graph visualization tool with several graph layout programs, web and interactive graphical interfaces, auxiliary tools, libraries, and language bindings. Graphviz needs to be installed separately in order to be used within KIELER, since it is called in a separate process using the DOT language for communication.
757 757  
758 -==== Predefined Layout Types ====
740 +=== Predefined Layout Types ===
759 759  
760 760  * **Layered** - The layer-based method emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.
761 761  * **Orthogonal** - Orthogonal methods follow the "topology-shape-metrics" approach, which first applies a planarization technique, resulting in a planar representation of the graph, then compute an orthogonal shape, and finally determine concrete coordinates for nodes and edge bend points by applying a compaction method.
... ... @@ -778,6 +778,15 @@
778 778  * **Use Case Diagram** - Use case diagrams as defined by the UML.
779 779  * **Unconnected Boxes** - Sets of nodes that have no connections and are treated as resizable boxes. This is related to mathematical [[packing problems>>url:http://en.wikipedia.org/wiki/Packing_problem||shape="rect"]]. Example: Regions in [[doc:SCCharts SyncCharts]].
780 780  
763 +== Other Options ==
764 +
765 +* **Layout Hierarchy** ({{code language="none"}}de.cau.cs.kieler.layoutHierarchy{{/code}}) - If this option is supported and active, the layout algorithm is requested to process the full hierarchy contained in the input node. This means that instead of executing another algorithm on each hierarchy level, all levels are arranged in a single algorithm execution.
766 +* **Hypernode** ({{code language="none"}}de.cau.cs.kieler.hypernode{{/code}}) - A node that is marked as hypernode has a special role in the graph structure, since all its incident edges are treated as parts of the same [[hyperedge>>url:http://en.wikipedia.org/wiki/Hypergraph||shape="rect"]]. Example: relation vertices in [[Ptolemy>>url:http://ptolemy.eecs.berkeley.edu/||shape="rect"]] models.
767 +* **Comment Box** ({{code language="none"}}de.cau.cs.kieler.commentBox{{/code}}) - A node that is marked as comment box is treated as a label that needs to be placed somewhere. This is different to normal node labels, which are usually regarded as fixed.
768 +* **No Layout** ({{code language="none"}}de.cau.cs.kieler.noLayout{{/code}}) - Elements that are marked with this option are excluded from layout. This is used to identify diagram objects that should not be regarded as graph elements.
769 +
770 +This section explains every layout option in more detail.
771 +
781 781  === Edge Routing ===
782 782  
783 783  {{id name="edgeRouting"/}}
... ... @@ -787,66 +787,14 @@
787 787  * POLYLINE
788 788  Edges consist of one or more segments defined by a list of bend points.
789 789  * ORTHOGONAL
790 -Edges are routed orthogonally, meaning that each segment of an edge runs either horizontally or vertically.
791 -* SPLINES
792 -Edges are routed as splines (smooth curves).
781 +Edges are routed orthogonally, meaning that each segment of an edge runs either horizontally or vertically, but never at an angle.
782 +* SPLINE
783 +Edges are routed as splines (smooth curves). (% style="color: rgb(153,51,0);" %)**TODO:** Add more documentation on how the returned bend points are to be interpreted.
793 793  * UNDEFINED
794 -No particular edge routing style is selected. Usually this value points to the default setting of the selected layout algorithm.
785 +No particular edge routing style is selected. The result produced by the layout algorithm may be undefined.
795 795  
796 -[[image:attach:edge_routing.png]]
787 +(% style="color: rgb(153,51,0);" %)**TODO:** Add an image illustrating the different routing styles.
797 797  
798 -When used as layout option, the edge routing is set for a whole graph or subgraph, i.e. on a parent node. However, the property is additionally used for the output of the layout algorithm in order to mark individual edges. If the edge routing assigned to an edge is anything other than SPLINES, the bend points of that edge are interpreted with their normal meaning, i.e. straight lines are drawn between consecutive bend points. If, on the other hand, a layout algorithm marks an edge with the value SPLINES, the bend points have to be interpreted as control points for a series of cubic splines following this procedure:
799 -
800 -1. Start at the source point of the edge.
801 -1. As long as there are at least three bend points left:
802 -11. Draw a cubic spline segment to the third bend point with the other two bend points as control points.
803 -11. Use the third bend point as start point for the next segment.
804 -11. Consume the three bend points and proceed to the next segment.
805 -1. Check the number of remaining bend points:
806 -11. Two bend points – draw a cubic spline segment to the target point of the edge.
807 -11. One bend point – draw a quadratic spline segment to the target point of the edge.
808 -11. No bend point – draw a straight line to the target point of the edge.
809 -
810 -== Other Options ==
811 -
812 -=== Alignment ===
813 -
814 -{{id name="alignment"/}}
815 -
816 -Determines the alignment of a node in relation to other nodes of the same row or column. For layer-based algorithms, for instance, this option controls how a node is positioned inside its assigned layer.
817 -
818 -=== Aspect Ratio ===
819 -
820 -{{id name="aspectRatio"/}}
821 -
822 -The aspect ratio of a drawing is the ratio of its total width to its total height. This option gives some control over that ratio, although in most cases it is only interpreted as a hint on how to arrange multiple connected components, hence the actual aspect ratio will probably be different from what has been specified with the option.
823 -
824 -=== Comment Box ===
825 -
826 -{{id name="commentBox"/}}
827 -
828 -A node that is marked as comment box is treated as a label that needs to be placed somewhere. In contrast to normal node labels (modeled with a KLabel instance), comment boxes may have connections to other nodes, as in the following example.
829 -
830 -[[image:attach:comment_box.png]]
831 -
832 -=== (% style="line-height: 1.5625;" %)Hypernode(%%) ===
833 -
834 -{{id name="hypernode"/}}
835 -
836 -A node that is marked as hypernode has a special role in the graph structure, since all its incident edges are treated as parts of the same [[hyperedge>>url:http://en.wikipedia.org/wiki/Hypergraph||shape="rect"]]. Example: relation vertices in [[Ptolemy>>url:http://ptolemy.eecs.berkeley.edu/||shape="rect"]] models.
837 -
838 -=== Layout Hierarchy ===
839 -
840 -{{id name="layoutHierarchy"/}}
841 -
842 -If this option is supported and active, the layout algorithm is requested to process the full hierarchy contained in the input node. This means that instead of executing another algorithm on each hierarchy level, all levels are arranged in a single algorithm execution.
843 -
844 -=== No Layout ===
845 -
846 -{{id name="noLayout"/}}
847 -
848 -Elements that are marked with this option are excluded from layout. This is used to identify diagram objects that should not be regarded as graph elements.
849 -
850 850  === Port Offset ===
851 851  
852 852  {{id name="portOffset"/}}
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -9470042
1 +9470014
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9470042/KIML Layout Options
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9470014/KIML Layout Options