| 1 |
% Part of the MetaUML manual. |
| 2 |
% Copyright (C) 2005 Ovidiu Gheorghies |
| 3 |
% |
| 4 |
% This program is free software; you can redistribute it and/or |
| 5 |
% modify it under the terms of the GNU General Public License |
| 6 |
% as published by the Free Software Foundation; either version 2 |
| 7 |
% of the License, or (at your option) any later version. |
| 8 |
% |
| 9 |
% This program is distributed in the hope that it will be useful, |
| 10 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
% GNU General Public License for more details. |
| 13 |
% |
| 14 |
% You should have received a copy of the GNU General Public License |
| 15 |
% along with this program; if not, write to the Free Software |
| 16 |
% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 |
|
| 18 |
input metauml; |
| 19 |
|
| 20 |
string theFont; |
| 21 |
|
| 22 |
beginfig(1); |
| 23 |
theFont := "pcrr"; |
| 24 |
|
| 25 |
boxjoin(a.sw=b.nw); |
| 26 |
|
| 27 |
boxit.ff(("Font name: ( ) " & theFont) infont theFont); |
| 28 |
boxit.s0("<<stereotype>> text with guillemets. ><>><<" infont theFont ); |
| 29 |
boxit.s1("<<a>>, <<b>>, <<c>>" infont theFont); |
| 30 |
boxit.s2("[g uard] text with square brackets []]." infont theFont); |
| 31 |
boxit.s3("{c onstraint} text with curly brackets {}}." infont theFont); |
| 32 |
|
| 33 |
drawboxed(ff, s0, s1, s2, s3); |
| 34 |
endfig; |
| 35 |
|
| 36 |
beginfig(2); |
| 37 |
save ff,s,g,c; |
| 38 |
theFont := "tyxbtt"; |
| 39 |
|
| 40 |
boxjoin(a.sw=b.nw); |
| 41 |
|
| 42 |
boxit.ff(("Font name: ( ) " & theFont) infont theFont); |
| 43 |
boxit.s0("<<stereotype>> text with guillemets. ><>><<" infont theFont ); |
| 44 |
boxit.s1("<<a>>, <<b>>, <<c>>" infont theFont); |
| 45 |
boxit.s2("[g uard] text with square brackets []]." infont theFont); |
| 46 |
boxit.s3("{c onstraint} text with curly brackets {}}." infont theFont); |
| 47 |
|
| 48 |
drawboxed(ff, s0, s1, s2, s3);endfig; |
| 49 |
|
| 50 |
beginfig(3); |
| 51 |
picture pA, pB, pC; |
| 52 |
string sA, sB, sC; |
| 53 |
sA := "assembleElementLocalMatrix(k: KeyType, mat: LocalMatrixType, a: AssembleAction)"; |
| 54 |
sB := "assembleElementLocalMatri(k: KeyType, mat: LocalMatrixType, a: AssembleAction)"; |
| 55 |
sC := "assembleElntLocalMatri(k: KeyType, mat: LocalMatrixType, a: AssembleAction)"; |
| 56 |
|
| 57 |
pA := sA infont "tyxbtt"; |
| 58 |
pB := sB infont "tyxbtt"; |
| 59 |
pC := sC infont "tyxbtt"; |
| 60 |
|
| 61 |
draw pA; |
| 62 |
draw pB shifted (0,-20); |
| 63 |
draw pC shifted (0,-40); |
| 64 |
endfig; |
| 65 |
|
| 66 |
beginfig(4); |
| 67 |
save ff,s,g,c; |
| 68 |
theFont := "ptmr8r"; |
| 69 |
|
| 70 |
boxjoin(a.sw=b.nw); |
| 71 |
boxit.ff(("Font name: ( ) " & theFont) infont theFont); |
| 72 |
|
| 73 |
boxit.s0("<<stereotype>> text with guillemets. ><>><<" infont theFont ); |
| 74 |
boxit.s1("<<a>>, <<b>>, <<c>>" infont theFont); |
| 75 |
boxit.s2("[g uard] text with square brackets []]." infont theFont); |
| 76 |
boxit.s3("{c onstraint} text with curly brackets {}}." infont theFont); |
| 77 |
|
| 78 |
drawboxed(ff, s0, s1, s2, s3); |
| 79 |
endfig; |
| 80 |
|
| 81 |
end |