source: Sophya/trunk/SophyaLib/Manual/defsophya.sty@ 976

Last change on this file since 976 was 974, checked in by ansari, 25 years ago

Modif pour la doc (defsophya.sty) - Reza 27/4/2000

File size: 1.3 KB
Line 
1% Definition de commande pour les schemas de classe
2% Definition of template class \tcls{Vector} --> Vector<T>
3\newcommand{\tcls}[1] {#1$<$T$>$}
4% Putting a class name in a box
5\newcommand{\clsbox}[1] { \framebox[40mm][c]{\mbox{\rule[-1mm]{0mm}{5mm} \bf #1} } }
6% Emplty class box
7\newcommand{\eclbox} { \makebox[40mm][c]{\mbox{\rule[-1mm]{0mm}{5mm}} } \ }
8% Length of \longleftarrow
9\newlength{\arrclsw} \settowidth{\arrclsw}{$\longleftarrow$}
10% One single class diagram
11\newcommand{\dclsa}[1]{\clsbox{#1} \\[2mm]}
12% two class diagram
13\newcommand{\dclsbb}[2]{\clsbox{#1} $\longleftarrow$ \clsbox{#2} \\[2mm]}
14% two class diagram with one empty class (placeholder)
15\newcommand{\dclsb}[1]{\eclbox $\longleftarrow$ \clsbox{#1} \\[2mm]}
16% three class diagram
17\newcommand{\dclsccc}[3]{\clsbox{#1} $\longleftarrow$
18 \clsbox{#2} $\longleftarrow$ \clsbox{#3} \\[2mm]}
19% three class diagram with one empty class (placeholder)
20\newcommand{\dclscc}[2]{\eclbox $\longleftarrow$ \clsbox{#1} $\longleftarrow$
21 \clsbox{#2} \\[2mm]}
22% three class diagram with two empty classes (placeholder)
23\newcommand{\dclsc}[1]{\eclbox \hspace{\arrclsw} \eclbox
24 $\longleftarrow$ \clsbox{#1} \\[2mm]}
25
26\newcommand{\bul}{$\bullet \ $}
27
Note: See TracBrowser for help on using the repository browser.