Changes for page KIML Layout Options

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

From version 6.1
edited by cds
on 2013/06/03 10:42
Change comment: There is no comment for this version
To version 19.1
edited by msp
on 2014/03/08 20:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.cds
1 +XWiki.msp
Content
... ... @@ -1,24 +1,30 @@
1 1  {{warning}}
2 -This is preliminary documentation. You've been warned.
2 +This is preliminary and incomplete documentation. You've been warned.
3 3  {{/warning}}
4 4  
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, it may change the option's default value. Algorithms may also provide more specialized documentation for a given layout option.
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.
6 6  
7 7  **Contents**
8 8  
9 -
10 10  
10 +
11 +{{toc maxLevel="2"/}}
12 +
11 11  = Overview =
12 12  
13 -Beside a human-readable name, layout options are defined by the following properties:
15 +Beside a user-friendly name, layout options are defined by the following properties:
14 14  
15 15  * An ID to identify them.
16 -* A type. One of Boolean, String, Int, Float, Enum, EnumSet (a {{code language="none"}}Set{{/code}} over a given enumeration), or Object. The types Enum and EnumSet have to be further defined by an enumeration class. The Object type can be constricted to a certain class.
17 -* 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, and Labels.
18 -* An optional default value. If an option is not set on an object and if the option does not have a default value, {{code language="none"}}null{{/code}} is returned when it is accessed.
18 +* 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.
19 +* The kinds of graph objects the option applies to. At least one of Nodes, Edges, Ports, Labels, or Parents (nodes that have children, including the diagram root node). Parents-applicable options affect whole graphs or subgraphs, while options with other application targets affect only single graph elements.
20 +* 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 -KIML defines the following set of layout options:
22 +Layout options can be assigned to two main categories: user options and programmatic options.
21 21  
24 +== User Options ==
25 +
26 +User options are those that you can see in the "//Layout View//" available in Eclipse if the KIML user interface is installed. That view is restricted to layout options that are supported by the currently active layout algorithm. Furthermore, some options are visible only when the //Show Advanced Properties// button is active in the view.
27 +
22 22  |=(((
23 23  Option
24 24  )))|=(((
... ... @@ -72,29 +72,46 @@
72 72  )))|(((
73 73  Parents
74 74  )))|(((
75 --1.0
81 +
76 76  )))
77 -|(% colspan="1" %)(% colspan="1" %)
78 -(((
79 -Comment Box
80 -)))|(% colspan="1" %)(% colspan="1" %)
81 -(((
82 -de.cau.cs.kieler.commentBox
83 -)))|(% colspan="1" %)(% colspan="1" %)
84 -(((
83 +|(((
84 +Debug Mode
85 +)))|(((
86 +de.cau.cs.kieler.debugMode
87 +)))|(((
85 85  Boolean
86 -)))|(% colspan="1" %)(% colspan="1" %)
87 -(((
88 -Nodes
89 -)))|(% colspan="1" %)(% colspan="1" %)
90 -(((
89 +)))|(((
90 +Parents
91 +)))|(((
91 91  false
92 92  )))
93 93  |(((
94 -Debug Mode
95 +Direction
95 95  )))|(((
96 -de.cau.cs.kieler.debugMode
97 +de.cau.cs.kieler.direction
97 97  )))|(((
99 +Enum
100 +)))|(((
101 +Parents
102 +)))|(((
103 +
104 +)))
105 +|(((
106 +[[Edge Routing>>doc:||anchor="edgeRouting"]]
107 +)))|(((
108 +de.cau.cs.kieler.edgeRouting
109 +)))|(((
110 +Enum
111 +)))|(((
112 +Parents
113 +)))|(((
114 +
115 +)))
116 +|(((
117 +Expand Nodes
118 +)))|(((
119 +de.cau.cs.kieler.expandNodes
120 +)))|(((
98 98  Boolean
99 99  )))|(((
100 100  Parents
... ... @@ -101,99 +101,179 @@
101 101  )))|(((
102 102  false
103 103  )))
127 +|(((
128 +Interactive
129 +)))|(((
130 +de.cau.cs.kieler.interactive
131 +)))|(((
132 +Boolean
133 +)))|(((
134 +Parents
135 +)))|(((
136 +false
137 +)))
138 +|(((
139 +Label Spacing
140 +)))|(((
141 +de.cau.cs.kieler.labelSpacing
142 +)))|(((
143 +Float
144 +)))|(((
145 +Edges
146 +Nodes
147 +)))|(((
148 +
149 +)))
150 +|(((
151 +Layout Hierarchy
152 +)))|(((
153 +de.cau.cs.kieler.layoutHierarchy
154 +)))|(((
155 +Boolean
156 +)))|(((
157 +Parents
158 +)))|(((
159 +false
160 +)))
161 +|(((
162 +[[Layout Algorithm>>doc:||anchor="layoutAlgorithm"]]
163 +)))|(((
164 +de.cau.cs.kieler.algorithm
165 +)))|(((
166 +String
167 +)))|(((
168 +Parents
169 +)))|(((
170 +
171 +)))
104 104  |(% colspan="1" %)(% colspan="1" %)
105 105  (((
106 -Diagram Type
174 +Node Label Placement
107 107  )))|(% colspan="1" %)(% colspan="1" %)
108 108  (((
109 -de.cau.cs.kieler.diagramType
177 +de.cau.cs.kieler.nodeLabelPlacement
110 110  )))|(% colspan="1" %)(% colspan="1" %)
111 111  (((
112 -String
180 +EnumSet
113 113  )))|(% colspan="1" %)(% colspan="1" %)
114 114  (((
115 -
183 +Nodes
116 116  )))|(% colspan="1" %)(% colspan="1" %)
117 117  (((
118 118  
119 119  )))
120 120  |(((
121 -Direction
189 +Port Constraints
122 122  )))|(((
123 -de.cau.cs.kieler.direction
191 +de.cau.cs.kieler.portConstraints
124 124  )))|(((
125 125  Enum
126 126  )))|(((
127 -Parents
195 +Nodes
128 128  )))|(((
129 -UNDEFINED
197 +
130 130  )))
131 131  |(% colspan="1" %)(% colspan="1" %)
132 132  (((
133 -Edge Label Placement
201 +Port Label Placement
134 134  )))|(% colspan="1" %)(% colspan="1" %)
135 135  (((
136 -de.cau.cs.kieler.edgeLabelPlacement
204 +de.cau.cs.kieler.portLabelPlacement
137 137  )))|(% colspan="1" %)(% colspan="1" %)
138 138  (((
139 139  Enum
140 140  )))|(% colspan="1" %)(% colspan="1" %)
141 141  (((
142 -Labels
210 +Nodes
143 143  )))|(% colspan="1" %)(% colspan="1" %)
144 144  (((
145 -UNDEFINED
213 +OUTSIDE
146 146  )))
215 +|(% colspan="1" %)(% colspan="1" %)
216 +(((
217 +Port Spacing
218 +)))|(% colspan="1" %)(% colspan="1" %)
219 +(((
220 +de.cau.cs.kieler.portSpacing
221 +)))|(% colspan="1" %)(% colspan="1" %)
222 +(((
223 +Float
224 +)))|(% colspan="1" %)(% colspan="1" %)
225 +(((
226 +Nodes
227 +)))|(% colspan="1" %)(% colspan="1" %)
228 +(((
229 +
230 +)))
147 147  |(((
148 -Edge Routing
232 +Position
149 149  )))|(((
150 -de.cau.cs.kieler.edgeRouting
234 +de.cau.cs.kieler.position
151 151  )))|(((
152 -Enum
236 +Object
153 153  )))|(((
154 -Parents
238 +Labels
239 +Nodes
240 +Ports
155 155  )))|(((
156 -UNDEFINED
242 +
157 157  )))
244 +|(((
245 +Priority
246 +)))|(((
247 +de.cau.cs.kieler.priority
248 +)))|(((
249 +Int
250 +)))|(((
251 +Edges
252 +Nodes
253 +)))|(((
254 +
255 +)))
158 158  |(% colspan="1" %)(% colspan="1" %)
159 159  (((
160 -Edge Type
258 +Randomization Seed
161 161  )))|(% colspan="1" %)(% colspan="1" %)
162 162  (((
163 -de.cau.cs.kieler.edgeType
261 +de.cau.cs.kieler.randomSeed
164 164  )))|(% colspan="1" %)(% colspan="1" %)
165 165  (((
166 -Enum
264 +Int
167 167  )))|(% colspan="1" %)(% colspan="1" %)
168 168  (((
169 -Edges
267 +Parents
170 170  )))|(% colspan="1" %)(% colspan="1" %)
171 171  (((
172 -NONE
270 +
173 173  )))
174 -|(((
175 -Expand Nodes
176 -)))|(((
177 -de.cau.cs.kieler.expandNodes
178 -)))|(((
272 +|(% colspan="1" %)(% colspan="1" %)
273 +(((
274 +Separate Connected Components
275 +)))|(% colspan="1" %)(% colspan="1" %)
276 +(((
277 +de.cau.cs.kieler.separateConnComp
278 +)))|(% colspan="1" %)(% colspan="1" %)
279 +(((
179 179  Boolean
180 -)))|(((
281 +)))|(% colspan="1" %)(% colspan="1" %)
282 +(((
181 181  Parents
182 -)))|(((
183 -false
284 +)))|(% colspan="1" %)(% colspan="1" %)
285 +(((
286 +
184 184  )))
185 185  |(% colspan="1" %)(% colspan="1" %)
186 186  (((
187 -Font Name
290 +Size Constraint
188 188  )))|(% colspan="1" %)(% colspan="1" %)
189 189  (((
190 -de.cau.cs.kieler.fontName
293 +de.cau.cs.kieler.sizeConstraint
191 191  )))|(% colspan="1" %)(% colspan="1" %)
192 192  (((
193 -String
296 +EnumSet
194 194  )))|(% colspan="1" %)(% colspan="1" %)
195 195  (((
196 -Labels
299 +Nodes
197 197  )))|(% colspan="1" %)(% colspan="1" %)
198 198  (((
199 199  
... ... @@ -200,31 +200,95 @@
200 200  )))
201 201  |(% colspan="1" %)(% colspan="1" %)
202 202  (((
203 -Font Size
306 +Size Options
204 204  )))|(% colspan="1" %)(% colspan="1" %)
205 205  (((
206 -de.cau.cs.kieler.fontSize
309 +de.cau.cs.kieler.sizeOptions
207 207  )))|(% colspan="1" %)(% colspan="1" %)
208 208  (((
209 -Int
312 +EnumSet
210 210  )))|(% colspan="1" %)(% colspan="1" %)
211 211  (((
212 -Labels
315 +Nodes
213 213  )))|(% colspan="1" %)(% colspan="1" %)
214 214  (((
318 +DEFAULT_MINIMUM_SIZE
319 +)))
320 +|(% colspan="1" %)(% colspan="1" %)
321 +(((
322 +Spacing
323 +)))|(% colspan="1" %)(% colspan="1" %)
324 +(((
325 +de.cau.cs.kieler.spacing
326 +)))|(% colspan="1" %)(% colspan="1" %)
327 +(((
328 +Float
329 +)))|(% colspan="1" %)(% colspan="1" %)
330 +(((
331 +Parents
332 +)))|(% colspan="1" %)(% colspan="1" %)
333 +(((
215 215  
216 216  )))
336 +
337 +== Programmatic Options ==
338 +
339 +Programmatic options are such that are meant to be configured exclusively through the KIML API. They should not be visible in the user interface.
340 +
341 +|=(((
342 +Option
343 +)))|=(((
344 +ID
345 +)))|=(((
346 +Type
347 +)))|=(((
348 +Applies to
349 +)))|=(((
350 +Default
351 +)))
217 217  |(% colspan="1" %)(% colspan="1" %)
218 218  (((
219 -Hypernode
354 +Animate
220 220  )))|(% colspan="1" %)(% colspan="1" %)
221 221  (((
222 -de.cau.cs.kieler.hypernode
357 +de.cau.cs.kieler.animate
223 223  )))|(% colspan="1" %)(% colspan="1" %)
224 224  (((
225 225  Boolean
226 226  )))|(% colspan="1" %)(% colspan="1" %)
227 227  (((
363 +Parents
364 +)))|(% colspan="1" %)(% colspan="1" %)
365 +(((
366 +true
367 +)))
368 +|(% colspan="1" %)(% colspan="1" %)
369 +(((
370 +Animation Time Factor
371 +)))|(% colspan="1" %)(% colspan="1" %)
372 +(((
373 +de.cau.cs.kieler.animTimeFactor
374 +)))|(% colspan="1" %)(% colspan="1" %)
375 +(((
376 +Int
377 +)))|(% colspan="1" %)(% colspan="1" %)
378 +(((
379 +Parents
380 +)))|(% colspan="1" %)(% colspan="1" %)
381 +(((
382 +100
383 +)))
384 +|(% colspan="1" %)(% colspan="1" %)
385 +(((
386 +Comment Box
387 +)))|(% colspan="1" %)(% colspan="1" %)
388 +(((
389 +de.cau.cs.kieler.commentBox
390 +)))|(% colspan="1" %)(% colspan="1" %)
391 +(((
392 +Boolean
393 +)))|(% colspan="1" %)(% colspan="1" %)
394 +(((
228 228  Nodes
229 229  )))|(% colspan="1" %)(% colspan="1" %)
230 230  (((
... ... @@ -231,96 +231,103 @@
231 231  false
232 232  )))
233 233  |(((
234 -Interactive
401 +[[Diagram Type>>doc:||anchor="diagramType"]]
235 235  )))|(((
236 -de.cau.cs.kieler.interactive
403 +de.cau.cs.kieler.diagramType
237 237  )))|(((
238 -Boolean
405 +String
239 239  )))|(((
240 240  Parents
241 241  )))|(((
242 -false
409 +
243 243  )))
244 244  |(((
245 -Label Spacing
412 +Edge Label Placement
246 246  )))|(((
247 -de.cau.cs.kieler.labelSpacing
414 +de.cau.cs.kieler.edgeLabelPlacement
248 248  )))|(((
249 -Float
416 +Enum
250 250  )))|(((
251 -Edges
252 -Nodes
418 +Labels
253 253  )))|(((
254 --1.0
420 +
255 255  )))
256 -|(((
257 -Layout Hierarchy
258 -)))|(((
259 -de.cau.cs.kieler.layoutHierarchy
260 -)))|(((
261 -Boolean
262 -)))|(((
263 -Parents
264 -)))|(((
265 -false
422 +|(% colspan="1" %)(% colspan="1" %)
423 +(((
424 +Edge Type
425 +)))|(% colspan="1" %)(% colspan="1" %)
426 +(((
427 +de.cau.cs.kieler.edgeType
428 +)))|(% colspan="1" %)(% colspan="1" %)
429 +(((
430 +Enum
431 +)))|(% colspan="1" %)(% colspan="1" %)
432 +(((
433 +Edges
434 +)))|(% colspan="1" %)(% colspan="1" %)
435 +(((
436 +NONE
266 266  )))
267 -|(((
268 -Layout Algorithm
269 -)))|(((
270 -de.cau.cs.kieler.algorithm
271 -)))|(((
438 +|(% colspan="1" %)(% colspan="1" %)
439 +(((
440 +Font Name
441 +)))|(% colspan="1" %)(% colspan="1" %)
442 +(((
443 +de.cau.cs.kieler.fontName
444 +)))|(% colspan="1" %)(% colspan="1" %)
445 +(((
272 272  String
273 -)))|(((
274 -Parents
275 -)))|(((
447 +)))|(% colspan="1" %)(% colspan="1" %)
448 +(((
449 +Labels
450 +)))|(% colspan="1" %)(% colspan="1" %)
451 +(((
276 276  
277 277  )))
278 278  |(% colspan="1" %)(% colspan="1" %)
279 279  (((
280 -Minimal Height
456 +Font Size
281 281  )))|(% colspan="1" %)(% colspan="1" %)
282 282  (((
283 -de.cau.cs.kieler.minHeight
459 +de.cau.cs.kieler.fontSize
284 284  )))|(% colspan="1" %)(% colspan="1" %)
285 285  (((
286 -Float
462 +Int
287 287  )))|(% colspan="1" %)(% colspan="1" %)
288 288  (((
289 -Nodes
290 -Parents
465 +Labels
291 291  )))|(% colspan="1" %)(% colspan="1" %)
292 292  (((
293 -0.0
468 +
294 294  )))
295 295  |(% colspan="1" %)(% colspan="1" %)
296 296  (((
297 -Minimal Width
472 +Hypernode
298 298  )))|(% colspan="1" %)(% colspan="1" %)
299 299  (((
300 -de.cau.cs.kieler.minWidth
475 +de.cau.cs.kieler.hypernode
301 301  )))|(% colspan="1" %)(% colspan="1" %)
302 302  (((
303 -Float
478 +Boolean
304 304  )))|(% colspan="1" %)(% colspan="1" %)
305 305  (((
306 306  Nodes
307 -Parents
308 308  )))|(% colspan="1" %)(% colspan="1" %)
309 309  (((
310 -0.0
484 +false
311 311  )))
312 312  |(% colspan="1" %)(% colspan="1" %)
313 313  (((
314 -No Layout
488 +Layout Ancestors
315 315  )))|(% colspan="1" %)(% colspan="1" %)
316 316  (((
317 -de.cau.cs.kieler.noLayout
491 +de.cau.cs.kieler.layoutAncestors
318 318  )))|(% colspan="1" %)(% colspan="1" %)
319 319  (((
320 320  Boolean
321 321  )))|(% colspan="1" %)(% colspan="1" %)
322 322  (((
323 -
497 +Parents
324 324  )))|(% colspan="1" %)(% colspan="1" %)
325 325  (((
326 326  false
... ... @@ -327,116 +327,114 @@
327 327  )))
328 328  |(% colspan="1" %)(% colspan="1" %)
329 329  (((
330 -Node Label Placement
504 +Maximal Animation Time
331 331  )))|(% colspan="1" %)(% colspan="1" %)
332 332  (((
333 -de.cau.cs.kieler.nodeLabelPlacement
507 +de.cau.cs.kieler.maxAnimTim
334 334  )))|(% colspan="1" %)(% colspan="1" %)
335 335  (((
336 -EnumSet
510 +Int
337 337  )))|(% colspan="1" %)(% colspan="1" %)
338 338  (((
339 -Nodes
513 +Parents
340 340  )))|(% colspan="1" %)(% colspan="1" %)
341 341  (((
342 -
516 +4000
343 343  )))
344 -|(((
345 -Port Constraints
346 -)))|(((
347 -de.cau.cs.kieler.portConstraints
348 -)))|(((
349 -Enum
350 -)))|(((
351 -Nodes
352 -)))|(((
353 -UNDEFINED
518 +|(% colspan="1" %)(% colspan="1" %)
519 +(((
520 +Minimal Animation Time
521 +)))|(% colspan="1" %)(% colspan="1" %)
522 +(((
523 +de.cau.cs.kieler.minAnimTim
524 +)))|(% colspan="1" %)(% colspan="1" %)
525 +(((
526 +Int
527 +)))|(% colspan="1" %)(% colspan="1" %)
528 +(((
529 +Parents
530 +)))|(% colspan="1" %)(% colspan="1" %)
531 +(((
532 +400
354 354  )))
355 355  |(% colspan="1" %)(% colspan="1" %)
356 356  (((
357 -Port Label Placement
536 +Minimal Height
358 358  )))|(% colspan="1" %)(% colspan="1" %)
359 359  (((
360 -de.cau.cs.kieler.portLabelPlacement
539 +de.cau.cs.kieler.minHeight
361 361  )))|(% colspan="1" %)(% colspan="1" %)
362 362  (((
363 -Enum
542 +Float
364 364  )))|(% colspan="1" %)(% colspan="1" %)
365 365  (((
366 366  Nodes
546 +Parents
367 367  )))|(% colspan="1" %)(% colspan="1" %)
368 368  (((
369 -OUTSIDE
549 +0.0
370 370  )))
371 371  |(% colspan="1" %)(% colspan="1" %)
372 372  (((
373 -[[Port Offset>>doc:||anchor="portOffset"]]
553 +Minimal Width
374 374  )))|(% colspan="1" %)(% colspan="1" %)
375 375  (((
376 -de.cau.cs.kieler.offset
556 +de.cau.cs.kieler.minWidth
377 377  )))|(% colspan="1" %)(% colspan="1" %)
378 378  (((
379 379  Float
380 380  )))|(% colspan="1" %)(% colspan="1" %)
381 381  (((
382 -Ports
562 +Nodes
563 +Parents
383 383  )))|(% colspan="1" %)(% colspan="1" %)
384 384  (((
385 -
566 +0.0
386 386  )))
387 387  |(% colspan="1" %)(% colspan="1" %)
388 388  (((
389 -Port Side
570 +No Layout
390 390  )))|(% colspan="1" %)(% colspan="1" %)
391 391  (((
392 -de.cau.cs.kieler.portSide
573 +de.cau.cs.kieler.noLayout
393 393  )))|(% colspan="1" %)(% colspan="1" %)
394 394  (((
395 -Enum
576 +Boolean
396 396  )))|(% colspan="1" %)(% colspan="1" %)
397 397  (((
398 -Ports
579 +
399 399  )))|(% colspan="1" %)(% colspan="1" %)
400 400  (((
401 -UNDEFINED
582 +false
402 402  )))
403 -|(((
404 -Position
405 -)))|(((
406 -de.cau.cs.kieler.position
407 -)))|(((
408 -Object
409 -)))|(((
410 -Labels
411 -Nodes
584 +|(% colspan="1" %)(% colspan="1" %)
585 +(((
586 +Port Index
587 +)))|(% colspan="1" %)(% colspan="1" %)
588 +(((
589 +de.cau.cs.kieler.portIndex
590 +)))|(% colspan="1" %)(% colspan="1" %)
591 +(((
592 +Int
593 +)))|(% colspan="1" %)(% colspan="1" %)
594 +(((
412 412  Ports
413 -)))|(((
596 +)))|(% colspan="1" %)(% colspan="1" %)
597 +(((
414 414  
415 415  )))
416 -|(((
417 -Priority
418 -)))|(((
419 -de.cau.cs.kieler.priority
420 -)))|(((
421 -Int
422 -)))|(((
423 -Edges
424 -Nodes
425 -)))|(((
426 -
427 -)))
428 428  |(% colspan="1" %)(% colspan="1" %)
429 429  (((
430 -Randomization Seed
602 +[[Port Offset>>doc:||anchor="portOffset"]]
431 431  )))|(% colspan="1" %)(% colspan="1" %)
432 432  (((
433 -de.cau.cs.kieler.randomSeed
605 +de.cau.cs.kieler.offset
434 434  )))|(% colspan="1" %)(% colspan="1" %)
435 435  (((
436 -Int
608 +Float
437 437  )))|(% colspan="1" %)(% colspan="1" %)
438 438  (((
439 -Parents
611 +Ports
440 440  )))|(% colspan="1" %)(% colspan="1" %)
441 441  (((
442 442  
... ... @@ -443,16 +443,16 @@
443 443  )))
444 444  |(% colspan="1" %)(% colspan="1" %)
445 445  (((
446 -Separate Connected Components
618 +Port Side
447 447  )))|(% colspan="1" %)(% colspan="1" %)
448 448  (((
449 -de.cau.cs.kieler.separateConnComp
621 +de.cau.cs.kieler.portSide
450 450  )))|(% colspan="1" %)(% colspan="1" %)
451 451  (((
452 -Boolean
624 +Enum
453 453  )))|(% colspan="1" %)(% colspan="1" %)
454 454  (((
455 -Parents
627 +Ports
456 456  )))|(% colspan="1" %)(% colspan="1" %)
457 457  (((
458 458  
... ... @@ -459,63 +459,161 @@
459 459  )))
460 460  |(% colspan="1" %)(% colspan="1" %)
461 461  (((
462 -Size Constraint
634 +Progress Bar
463 463  )))|(% colspan="1" %)(% colspan="1" %)
464 464  (((
465 -de.cau.cs.kieler.sizeConstraint
637 +de.cau.cs.kieler.progressBar
466 466  )))|(% colspan="1" %)(% colspan="1" %)
467 467  (((
468 -EnumSet
640 +Boolean
469 469  )))|(% colspan="1" %)(% colspan="1" %)
470 470  (((
471 -Nodes
643 +Parents
472 472  )))|(% colspan="1" %)(% colspan="1" %)
473 473  (((
474 -
646 +false
475 475  )))
476 476  |(% colspan="1" %)(% colspan="1" %)
477 477  (((
478 -Size Options
650 +Scale Factor
479 479  )))|(% colspan="1" %)(% colspan="1" %)
480 480  (((
481 -de.cau.cs.kieler.sizeOptions
653 +de.cau.cs.kieler.scaleFactor
482 482  )))|(% colspan="1" %)(% colspan="1" %)
483 483  (((
484 -EnumSet
656 +Float
485 485  )))|(% colspan="1" %)(% colspan="1" %)
486 486  (((
487 487  Nodes
488 488  )))|(% colspan="1" %)(% colspan="1" %)
489 489  (((
490 -DEFAULT_MINIMUM_SIZE
662 +1.0
491 491  )))
492 492  |(% colspan="1" %)(% colspan="1" %)
493 493  (((
494 -Spacing
666 +Zoom to Fit
495 495  )))|(% colspan="1" %)(% colspan="1" %)
496 496  (((
497 -de.cau.cs.kieler.spacing
669 +de.cau.cs.kieler.zoomToFit
498 498  )))|(% colspan="1" %)(% colspan="1" %)
499 499  (((
500 -Float
672 +Boolean
501 501  )))|(% colspan="1" %)(% colspan="1" %)
502 502  (((
503 503  Parents
504 504  )))|(% colspan="1" %)(% colspan="1" %)
505 505  (((
506 --1.0
678 +false
507 507  )))
508 508  
509 -= The Most Important Options =
681 +=== Layout Output Properties ===
510 510  
511 -**TODO:** Write a bit of documentation about the most important layout options and how to use them, possibly with a simple example or something.
683 +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
512 512  
685 +|=(((
686 +Property
687 +)))|=(((
688 +ID
689 +)))|=(((
690 +Type
691 +)))|=(((
692 +Applies to
693 +)))
694 +|(((
695 +[[Edge Routing>>doc:||anchor="edgeRouting"]]
696 +)))|(((
697 +de.cau.cs.kieler.edgeRouting
698 +)))|(((
699 +Enum
700 +)))|(((
701 +Edges
702 +)))
703 +|(((
704 +Junction Points
705 +)))|(((
706 +de.cau.cs.kieler.junctionPoints
707 +)))|(((
708 +Object
709 +)))|(((
710 +Edges
711 +)))
712 +
713 +
714 +
513 513  = Detailed Documentation =
514 514  
717 +== The Most Important Options ==
718 +
719 +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.
720 +
721 +=== Layout Algorithm ===
722 +
723 +{{id name="layoutAlgorithm"/}}
724 +
725 +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.
726 +
727 +The following layout types are predefined:
728 +
729 +* **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.
730 +* **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.
731 +* **Force** - Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces.
732 +* **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.
733 +* **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.
734 +
735 +=== Available Algorithms and Libraries ===
736 +
737 +* **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.
738 +* **Randomizer** - Distributes the nodes randomly; not very useful, but it can show how important a good layout is for understanding a graph.
739 +* (((
740 +**Box Layout** - Ignores edges, places all nodes in rows. Can be used to layout collections of unconnected boxes, such as Statechart regions.
741 +)))
742 +* **Fixed Layout** - Does not compute a new layout, but leaves all nodes and edges where they are. If the Position and Bend Points options are set for the elements of the graph, the pre-defined layout is applied.
743 +* **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.
744 +* **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.
745 +
746 +=== Diagram Type ===
747 +
748 +{{id name="diagramType"/}}
749 +
750 +Diagram types are used to classify graphical diagrams for setting default layout option values for a set of similar diagrams. The diagram type of an element is specified with the layout option {{code language="none"}}de.cau.cs.kieler.diagramType{{/code}}. Layout algorithms can declare which diagram types they support well, and give a priority value for each supported type. KIML decides at runtime which layout algorithm has the highest priority for a given diagram, so that the most suitable algorithm is always used. Usual values for such priorities are between 1 and 10, where the highest value should only be assigned if the algorithm is especially designed for diagrams of the respective type, or if it has proven to be very adequate for them. Lower values should be given if the algorithm is able to draw the diagrams correctly, but with lower quality of the resulting layout.
751 +
752 +The following diagram types are predefined:
753 +
754 +* **General** - This type is automatically assigned to all diagrams for which no specific type is declared. A layout algorithm that has the highest priority on the //General// diagram type is taken as the default algorithm when no further information on a diagram is available to KIML.
755 +* **State Machine** - All kinds of state machines, automata, and activity diagrams. Examples: [[doc:SCCharts SyncCharts]], UML Activity diagrams.
756 +* **Data Flow Diagram** - Actor-oriented diagrams, where connections are mostly done between //ports// of nodes. These diagrams can only be handled properly by very special layout algorithms, such as those developed in the [[KLay project>>doc:Layout Algorithms (KLay)]].
757 +* **Class Diagram** - Class diagrams such as Ecore diagrams for the [[EMF>>url:http://www.eclipse.org/modeling/emf/||shape="rect"]] or UML Class diagrams.
758 +* **Use Case Diagram** - Use case diagrams as defined by the UML.
759 +* **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]].
760 +
761 +== Other Options ==
762 +
763 +* **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.
764 +* **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.
765 +* **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.
766 +* **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.
767 +
515 515  This section explains every layout option in more detail.
516 516  
517 -== Port Offset ==
770 +=== Edge Routing ===
518 518  
772 +{{id name="edgeRouting"/}}
773 +
774 +This option influences the way in which edges are routed between the nodes they connect. The following settings are available:
775 +
776 +* POLYLINE
777 +Edges consist of one or more segments defined by a list of bend points.
778 +* ORTHOGONAL
779 +Edges are routed orthogonally, meaning that each segment of an edge runs either horizontally or vertically, but never at an angle.
780 +* SPLINE
781 +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.
782 +* UNDEFINED
783 +No particular edge routing style is selected. The result produced by the layout algorithm may be undefined.
784 +
785 +(% style="color: rgb(153,51,0);" %)**TODO:** Add an image illustrating the different routing styles.
786 +
787 +=== Port Offset ===
788 +
519 519  {{id name="portOffset"/}}
520 520  
521 521  The port offset is used to specify how much space a layout algorithm should leave between a port and the border of its node. This is usually zero, but doesn't have to be. If the offset is not defined for a given port, a layout algorithm can try to infer the offset from the port's coordinates and its node's size in the input graph. This of course requires both properties to be set to sensible values.
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -7111110
1 +9470012
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/7111110/KIML Layout Options
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9470012/KIML Layout Options