blob: bcd6028c607dda97d2911f5ac5d2ad8447d4b890 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
% --- 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);
stepX:=60;
link(aggregationUni)
(pathStepX(A.e,B.e,stepX));
stepY:=20;
link(inheritance)
(pathStepY(B.n,A.n,stepY));
endfig;
end;
|