summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/pgf-umlcd/demo
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/pgf-umlcd/demo')
-rw-r--r--graphics/pgf/contrib/pgf-umlcd/demo/color.tex14
-rw-r--r--graphics/pgf/contrib/pgf-umlcd/demo/multiple-inheritance.tex16
2 files changed, 30 insertions, 0 deletions
diff --git a/graphics/pgf/contrib/pgf-umlcd/demo/color.tex b/graphics/pgf/contrib/pgf-umlcd/demo/color.tex
new file mode 100644
index 0000000000..798f4ae141
--- /dev/null
+++ b/graphics/pgf/contrib/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/graphics/pgf/contrib/pgf-umlcd/demo/multiple-inheritance.tex b/graphics/pgf/contrib/pgf-umlcd/demo/multiple-inheritance.tex
new file mode 100644
index 0000000000..d97c5140ef
--- /dev/null
+++ b/graphics/pgf/contrib/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}