summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/4-3-15.mp
blob: cf8e57ed06af859e380463f2fa9fa464d58c42e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
% --- 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")();
Class.C("C")("foo:int")();
B.sw=A.e+(10,-10);
C.sw=A.nw+(0,20);
drawObjects(A,B,C);
untilX:=B.left;
link(association)
    (pathHorizontal(A.e,untilX));
untilY:=C.bottom;
link(association)
    (pathVertical(A.n,untilY));
endfig;
end;