texmf-dist/doc/latex/pgf-umlcd/demo/class.tex
raw| 1 | \begin{tikzpicture} |
| 2 | \begin{class}[text width=8cm]{ClassName}{0,0} |
| 3 | \attribute{name : attribute type} |
| 4 | \attribute{name : attribute type = default value} |
| 5 | |
| 6 | \operation{name(parameter list) : type of value returned} |
| 7 | % virtual operation |
| 8 | \operation[0]{name(parameters list) : type of value returned} |
| 9 | \end{class} |
| 10 | \end{tikzpicture} |