blob: 041bb2d0e5281327118da4a3f622356321aacbee (
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
|
input metauml;
iPict.boxed := 1;
beginfig(1);
iClass.shade := 3;
Class.F("Foo")("a: int","b: int")();
Class.B("Bar")()();
B.nw = F.ne + (20,-20);
drawObjects(B, F);
link(association)(B.nw -- F.ne);
draw objectBorder(B) withcolor red;
draw objectBorder(F) withcolor blue;
link(association)(pathCut(B,F)(B.c--F.c));
endfig;
beginfig(2);
save A, B;
Picture.A("A");
Picture.B("Blue");
B.sw = A.ne + (20,20);
drawObjects(A, B);
link(associationUni)(pathManhattanX(A.e, B));
endfig;
end
end
|