summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/4-3-13.mp
blob: 6aa7e0f53f73a2dd1a50c9d794e9ebe659814583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% --- start of displayed preamble in the book ---
input metauml
% --- end of displayed preamble in the book ---
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
Class.A("A")()(); Class.B("B")()();
B.sw=A.ne+(10,10);
drawObjects(A,B);
link(aggregationUni)
    (rpathManhattanX(A.e,B.s));
link(inheritance)
    (pathManhattanY(A.n,B.w));
endfig;
end;