summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/metauml/metauml_manual/fig/component.mp
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/metapost/metauml/metauml_manual/fig/component.mp')
-rw-r--r--Master/texmf-dist/doc/metapost/metauml/metauml_manual/fig/component.mp61
1 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/metapost/metauml/metauml_manual/fig/component.mp b/Master/texmf-dist/doc/metapost/metauml/metauml_manual/fig/component.mp
new file mode 100644
index 00000000000..2601d54c263
--- /dev/null
+++ b/Master/texmf-dist/doc/metapost/metauml/metauml_manual/fig/component.mp
@@ -0,0 +1,61 @@
+input metauml;
+
+beginfig(1);
+ Component.C("Business Logic")();
+ drawObject(C);
+endfig;
+
+beginfig(2);
+ save A, B, C, BigC;
+
+ Class.A("A")()();
+ Package.B("B")();
+ Component.C("C")();
+
+ Component.BigC("Big Component")(A, B, C);
+
+ leftToRight(10)(A, B);
+ topToBottom(10)(A, C);
+
+ drawObject(BigC);
+endfig;
+
+beginfig(3);
+ save A, B;
+ Component.A("A")();
+ Component.B("B")();
+
+ leftToRight(80)(A, B);
+
+ drawObjects(A, B);
+
+ link(providedInterface)( A.e -- .5[A.e, B.w] );
+endfig;
+
+beginfig(4);
+ save A, B;
+ Component.A("A")();
+ Component.B("B")();
+
+ leftToRight(80)(A, B);
+
+ drawObjects(A, B);
+
+ link(requiredInterface)( B.w -- .5[A.e, B.w]);
+endfig;
+
+beginfig(5);
+ save A, B;
+ Component.A("A")();
+ Component.B("B")();
+
+ leftToRight(80)(A, B);
+
+ drawObjects(A, B);
+
+ link(providedInterface)( A.e -- .5[A.e, B.w] );
+ link(requiredInterface)( B.w -- .5[A.e, B.w] );
+endfig;
+
+
+end \ No newline at end of file