[Uml-devel] [Bug 67059] Automatic layout of diagrams

Ralf Habacker ralf.habacker at gmail.com
Tue Mar 13 20:54:54 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=67059

--- Comment #27 from Ralf Habacker <ralf.habacker at gmail.com> ---
(In reply to comment #26)
> Created attachment 69475 [details]
> demo file for testing vertical layouts
> 
> Applying vertical layout to this class diagram shows a few overlaps in the
> association names.
> Is there a way to tell dot about minimum required edge lengths?

http://www.graphviz.org/content/attrs#dminlen

BTW: You may add dot attributes to the config files to get additional layouts

# nodes attributes 
[X-UMBRELLO-Dot-Nodes]
type::<widget-type>=<dot-attributes>
# example 
type::class=shape=box
# for all not defined widgets types
type::default=shape=box  

# edge attributes 
[X-UMBRELLO-Dot-Edges]

# for visual representation (export, temporary dot files for auto layout)
visual::type::anchor=arrowhead=none,style=dashed
visual::type::aggregation=arrowtail=odiamond,dir=back
visual::type::composition=arrowhead=diamonds
visual::type::containment=arrowtail=odottee,dir=back
visual::type::dependency=arrowtail=vee,style=dashed,dir=back
visual::type::uniassociation=arrowtail=vee,dir=back
visual::type::association=arrowhead=none
visual::type::generalization=arrowtail=normal,dir=back
visual::type::realisation=arrowtail=normal,dir=back
visual::type::default=arrowhead=none

# for position ranking
ranking::type::anchor=constraint=false
ranking::type::aggregation=weight=0.001
ranking::type::association=weight=0.001
ranking::type::composition=weight=0.001
ranking::type::containment=weight=0.001
ranking::type::dependency=weight=0.001
ranking::type::generalization=weight=1.0
ranking::type::realisation=weight=0.8
ranking::type::uniassociation=weight=0.001
ranking::type::default=constraint=false
# id handling (swap nodes in edge line)
id::type::aggregation=swap
id::type::containment=swap

// other dot attributes 
[X-UMBRELLO-Dot-Attributes]
// graph statement
graph=splines=polyline,rankdir=TB,outputorder=nodesfirst,ranksep=0.5,nodesep=0.5
// main node attributes
node=
// main edge attributes
edge=

// internal settings
[X-UMBRELLO-Dot-Settings]
origin=50,50

-- 
You are receiving this mail because:
You are the assignee for the bug.




More information about the umbrello-devel mailing list