Changes for page KIML Layout Options
Last modified by Alexander Schulz-Rosengarten on 2023/09/11 16:17
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,6 +1,8 @@ 1 - 1 +{{warning}} 2 +This is preliminary and incomplete documentation. You've been warned. 3 +{{/warning}} 2 2 3 -KIML defines a whole set of standard layout options that many layout algorithms support. When an option is supported by an algorithm, that algorithm may override the option's default value. Algorithms may also provide more specialized documentation for layout options. 5 +KIML defines a whole set of standard layout options that many layout algorithms support. Whether an algorithm supports a layout option depends on the option and on the algorithm. When an option is supported by an algorithm, that algorithm may override the option's default value. Algorithms may also provide more specialized documentation for layout options. 4 4 5 5 **Contents** 6 6 ... ... @@ -14,7 +14,7 @@ 14 14 15 15 * An ID to identify them. 16 16 * A type. One of Boolean, String, Int, Float, Enum, EnumSet (a s{{code language="none"}}et{{/code}} over a given enumeration), or Object (a non-primitive Java object). The types Enum and EnumSet have to be further defined by an enumeration class. The Object type can be constricted to a certain Java class. 17 -* The kinds of graph objects the option applies to. At least one of Nodes, Edges,Ports, Labels, orParents (nodes that have children, including the diagram root node).Parents-applicableoptions affect whole graphsor subgraphs,whileoptionswithother application targets affect onlysingle graph elements.19 +* The kinds of graph objects the option applies to. At least one of Parents (nodes that have children, including the diagram root node), Nodes, Edges, Ports, or Labels. 18 18 * An optional default value. A default value may also be provided by the layout algorithm using the option, or by the modeling application you are using. In these cases the value given here is overridden. 19 19 20 20 Layout options can be assigned to two main categories: user options and programmatic options. ... ... @@ -347,54 +347,6 @@ 347 347 )))|=((( 348 348 Default 349 349 ))) 350 -|(% colspan="1" %)(% colspan="1" %) 351 -((( 352 -Animate 353 -)))|(% colspan="1" %)(% colspan="1" %) 354 -((( 355 -de.cau.cs.kieler.animate 356 -)))|(% colspan="1" %)(% colspan="1" %) 357 -((( 358 -Boolean 359 -)))|(% colspan="1" %)(% colspan="1" %) 360 -((( 361 -Parents 362 -)))|(% colspan="1" %)(% colspan="1" %) 363 -((( 364 -true 365 -))) 366 -|(% colspan="1" %)(% colspan="1" %) 367 -((( 368 -Animation Time Factor 369 -)))|(% colspan="1" %)(% colspan="1" %) 370 -((( 371 -de.cau.cs.kieler.animTimeFactor 372 -)))|(% colspan="1" %)(% colspan="1" %) 373 -((( 374 -Int 375 -)))|(% colspan="1" %)(% colspan="1" %) 376 -((( 377 -Parents 378 -)))|(% colspan="1" %)(% colspan="1" %) 379 -((( 380 -100 381 -))) 382 -|(% colspan="1" %)(% colspan="1" %) 383 -((( 384 -Comment Box 385 -)))|(% colspan="1" %)(% colspan="1" %) 386 -((( 387 -de.cau.cs.kieler.commentBox 388 -)))|(% colspan="1" %)(% colspan="1" %) 389 -((( 390 -Boolean 391 -)))|(% colspan="1" %)(% colspan="1" %) 392 -((( 393 -Nodes 394 -)))|(% colspan="1" %)(% colspan="1" %) 395 -((( 396 -false 397 -))) 398 398 |((( 399 399 [[Diagram Type>>doc:||anchor="diagramType"]] 400 400 )))|((( ... ... @@ -483,54 +483,6 @@ 483 483 ))) 484 484 |(% colspan="1" %)(% colspan="1" %) 485 485 ((( 486 -Layout Ancestors 487 -)))|(% colspan="1" %)(% colspan="1" %) 488 -((( 489 -de.cau.cs.kieler.layoutAncestors 490 -)))|(% colspan="1" %)(% colspan="1" %) 491 -((( 492 -Boolean 493 -)))|(% colspan="1" %)(% colspan="1" %) 494 -((( 495 -Parents 496 -)))|(% colspan="1" %)(% colspan="1" %) 497 -((( 498 -false 499 -))) 500 -|(% colspan="1" %)(% colspan="1" %) 501 -((( 502 -Maximal Animation Time 503 -)))|(% colspan="1" %)(% colspan="1" %) 504 -((( 505 -de.cau.cs.kieler.maxAnimTim 506 -)))|(% colspan="1" %)(% colspan="1" %) 507 -((( 508 -Int 509 -)))|(% colspan="1" %)(% colspan="1" %) 510 -((( 511 -Parents 512 -)))|(% colspan="1" %)(% colspan="1" %) 513 -((( 514 -4000 515 -))) 516 -|(% colspan="1" %)(% colspan="1" %) 517 -((( 518 -Minimal Animation Time 519 -)))|(% colspan="1" %)(% colspan="1" %) 520 -((( 521 -de.cau.cs.kieler.minAnimTim 522 -)))|(% colspan="1" %)(% colspan="1" %) 523 -((( 524 -Int 525 -)))|(% colspan="1" %)(% colspan="1" %) 526 -((( 527 -Parents 528 -)))|(% colspan="1" %)(% colspan="1" %) 529 -((( 530 -400 531 -))) 532 -|(% colspan="1" %)(% colspan="1" %) 533 -((( 534 534 Minimal Height 535 535 )))|(% colspan="1" %)(% colspan="1" %) 536 536 ((( ... ... @@ -581,22 +581,6 @@ 581 581 ))) 582 582 |(% colspan="1" %)(% colspan="1" %) 583 583 ((( 584 -Port Index 585 -)))|(% colspan="1" %)(% colspan="1" %) 586 -((( 587 -de.cau.cs.kieler.portIndex 588 -)))|(% colspan="1" %)(% colspan="1" %) 589 -((( 590 -Int 591 -)))|(% colspan="1" %)(% colspan="1" %) 592 -((( 593 -Ports 594 -)))|(% colspan="1" %)(% colspan="1" %) 595 -((( 596 - 597 -))) 598 -|(% colspan="1" %)(% colspan="1" %) 599 -((( 600 600 [[Port Offset>>doc:||anchor="portOffset"]] 601 601 )))|(% colspan="1" %)(% colspan="1" %) 602 602 ((( ... ... @@ -627,89 +627,7 @@ 627 627 ((( 628 628 629 629 ))) 630 -|(% colspan="1" %)(% colspan="1" %) 631 -((( 632 -Progress Bar 633 -)))|(% colspan="1" %)(% colspan="1" %) 634 -((( 635 -de.cau.cs.kieler.progressBar 636 -)))|(% colspan="1" %)(% colspan="1" %) 637 -((( 638 -Boolean 639 -)))|(% colspan="1" %)(% colspan="1" %) 640 -((( 641 -Parents 642 -)))|(% colspan="1" %)(% colspan="1" %) 643 -((( 644 -false 645 -))) 646 -|(% colspan="1" %)(% colspan="1" %) 647 -((( 648 -Scale Factor 649 -)))|(% colspan="1" %)(% colspan="1" %) 650 -((( 651 -de.cau.cs.kieler.scaleFactor 652 -)))|(% colspan="1" %)(% colspan="1" %) 653 -((( 654 -Float 655 -)))|(% colspan="1" %)(% colspan="1" %) 656 -((( 657 -Nodes 658 -)))|(% colspan="1" %)(% colspan="1" %) 659 -((( 660 -1.0 661 -))) 662 -|(% colspan="1" %)(% colspan="1" %) 663 -((( 664 -Zoom to Fit 665 -)))|(% colspan="1" %)(% colspan="1" %) 666 -((( 667 -de.cau.cs.kieler.zoomToFit 668 -)))|(% colspan="1" %)(% colspan="1" %) 669 -((( 670 -Boolean 671 -)))|(% colspan="1" %)(% colspan="1" %) 672 -((( 673 -Parents 674 -)))|(% colspan="1" %)(% colspan="1" %) 675 -((( 676 -false 677 -))) 678 678 679 -=== Layout Output Properties === 680 - 681 -A few properties are used as additional information in the output of a layout algorithm. This information should be considered when the layout is applied to the original diagram 682 - 683 -|=((( 684 -Property 685 -)))|=((( 686 -ID 687 -)))|=((( 688 -Type 689 -)))|=((( 690 -Applies to 691 -))) 692 -|((( 693 -[[Edge Routing>>doc:||anchor="edgeRouting"]] 694 -)))|((( 695 -de.cau.cs.kieler.edgeRouting 696 -)))|((( 697 -Enum 698 -)))|((( 699 -Edges 700 -))) 701 -|((( 702 -Junction Points 703 -)))|((( 704 -de.cau.cs.kieler.junctionPoints 705 -)))|((( 706 -Object 707 -)))|((( 708 -Edges 709 -))) 710 - 711 - 712 - 713 713 = Detailed Documentation = 714 714 715 715 == The Most Important Options == ... ... @@ -720,15 +720,19 @@ 720 720 721 721 {{id name="layoutAlgorithm"/}} 722 722 723 -The option with identifier {{code language="none"}}de.cau.cs.kieler.algorithm{{/code}} specifies which layout algorithm to use for a graph orsubgraph. 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.531 +The option with identifier {{code language="none"}}de.cau.cs.kieler.algorithm{{/code}} specifies which layout algorithm to use for the content of a composite node. 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. 724 724 725 -The following layout has been created bysetting a force-basedlayout algorithm on theinnerhierarchy level anda layer-based layout algorithm onthetop level.533 +The following layout types are predefined: 726 726 727 -[[image:attach:layout_algorithm.png]] 535 +* **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. 536 +* **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. 537 +* **Force** - Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. 538 +* **Circular** - Circular layout algorithms emphasize biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent properties of the graph. 539 +* **Tree** - Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type. 728 728 729 729 === Available Algorithms and Libraries === 730 730 731 -* **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. 543 +* **The [[KLay Project>>doc:Layout Algorithms (KLay)]]** - Java implementations of standard layout approaches, augmented with special processing of graph features such as ports and edge labels. 732 732 * **Randomizer** - Distributes the nodes randomly; not very useful, but it can show how important a good layout is for understanding a graph. 733 733 * ((( 734 734 **Box Layout** - Ignores edges, places all nodes in rows. Can be used to layout collections of unconnected boxes, such as Statechart regions. ... ... @@ -737,14 +737,6 @@ 737 737 * **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. 738 738 * **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. 739 739 740 -=== Predefined Layout Types === 741 - 742 -* **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. 743 -* **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. 744 -* **Force** - Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. 745 -* **Circular** - Circular layout algorithms emphasize biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent properties of the graph. 746 -* **Tree** - Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type. 747 - 748 748 === Diagram Type === 749 749 750 750 {{id name="diagramType"/}}
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -947001 41 +9470010 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/947001 4/KIML Layout Options1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9470010/KIML Layout Options