Debian Codegraph @

texmf-dist/metapost/metauml/metauml_package_relations.mp

raw
1 % Copyright 2006 2015 Radu-George Radulescu
2 % Licensed under the Apache License, Version 2.0.
3
4 if known _metauml_package_relations_mp:
5 expandafter endinput
6 fi;
7 _metauml_package_relations_mp:=1;
8
9 defaultRelationHeadWidth := 25;
10 defaultRelationHeadHeight := 10;
11
12 vardef NestInfo@# =
13 LinkInfo@#;
14
15 @#widthA = 0;
16 @#heightA = 0;
17 @#drawMethodA = "drawNothing";
18
19 @#widthB = defaultRelationHeadWidth;
20 @#heightB = defaultRelationHeadHeight;
21 @#drawMethodB = "drawCrossedCircle";
22
23 @#drawMethod = "drawLine";
24 enddef;
25
26 NestInfo.nest;
27
28 vardef drawRelation(text iLink)(expr myPath)=
29 link(iLink)(myPath);
30 enddef;
31
32 vardef drawLine(expr my_path) =
33 draw my_path;
34 enddef;
35
36 vardef drawNothing(text pA)(text pB)(text base) =
37 enddef;