summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgf-umlcd/demo
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-05-23 19:55:14 +0000
committerKarl Berry <karl@freefriends.org>2022-05-23 19:55:14 +0000
commit9bc5428d15299f7f617a06b76e9dab76044437ce (patch)
treede3efb141dabc5eb909bdbfd98c1ae75dce15320 /Master/texmf-dist/doc/latex/pgf-umlcd/demo
parent1d4ce619745b89d1f9a73d075f19d5f2167d8d87 (diff)
pgf-umlcd (23may22)
git-svn-id: svn://tug.org/texlive/trunk@63378 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgf-umlcd/demo')
-rw-r--r--Master/texmf-dist/doc/latex/pgf-umlcd/demo/color.tex14
-rw-r--r--Master/texmf-dist/doc/latex/pgf-umlcd/demo/multiple-inheritance.tex16
2 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pgf-umlcd/demo/color.tex b/Master/texmf-dist/doc/latex/pgf-umlcd/demo/color.tex
new file mode 100644
index 00000000000..798f4ae1416
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pgf-umlcd/demo/color.tex
@@ -0,0 +1,14 @@
+\renewcommand{\umltextcolor}{red}
+\renewcommand{\umlfillcolor}{green}
+\renewcommand{\umldrawcolor}{blue}
+
+\begin{tikzpicture}
+ \begin{class}[text width=8cm]{ClassName}{0,0}
+ \attribute{name : attribute type}
+ \attribute{name : attribute type = default value}
+
+ \operation{name(parameter list) : type of value returned}
+ % virtual operation
+ \operation[0]{name(parameters list) : type of value returned}
+ \end{class}
+\end{tikzpicture} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/pgf-umlcd/demo/multiple-inheritance.tex b/Master/texmf-dist/doc/latex/pgf-umlcd/demo/multiple-inheritance.tex
new file mode 100644
index 00000000000..d97c5140ef8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pgf-umlcd/demo/multiple-inheritance.tex
@@ -0,0 +1,16 @@
+\begin{tikzpicture}%[show background grid]
+ \begin{class}[text width = 2cm]{TArg}{0, 0}
+ \end{class}
+
+ \begin{class}[text width = 2cm]{TGroup}{5, 0}
+ \end{class}
+
+ \begin{class}[text width = 2cm]{TProgInit}{10, 0}
+ \end{class}
+
+ \begin{class}[text width = 2cm]{TProgram}{5, -2}
+ \inherit{TProgInit}
+ \inherit{TGroup}
+ \inherit{TArg}
+ \end{class}
+\end{tikzpicture}