aboutsummaryrefslogtreecommitdiff
path: root/umlgen/src/main/resources/graph.ftl
blob: 759fc44b76f01ed86ba4ae9bc888c10c0679cc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
digraph {
        node [
                shape=record
                style=filled
                fillcolor=gray95
        ]

        <#list classes as cls>
            <#if cls.tag()??>
            ${cls.name()} [label = <{<b>«${cls.tag()}»</b><br />${cls.name()}}>]
            <#else>
            ${cls.name()} [label = "${cls.name()}"]
            </#if>
        </#list>

        <#if extends??>
        <#list extends as relation>
            <#if relation.impl()>
            edge [dir=forward arrowtail=empty arrowhead=empty style="dashed"]
            <#else>
            edge [dir=forward arrowtail=empty arrowhead=empty style=""]
            </#if>
            ${relation.from()} -> ${relation.to()}
        </#list>
        </#if>

        <#if assocs??>
        <#list assocs as assoc>
            <#if assoc.partOf()>
            edge [dir=both arrowtail=odiamond arrowhead=vee style="" headlabel="${assoc.head()}"]
            <#else>
            edge [dir=forward arrowtail=empty arrowhead=vee style="" headlabel="${assoc.head()}"]
            </#if>
            ${assoc.from()} -> ${assoc.to()}
        </#list>
        </#if>
}