diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-04-21 19:02:50 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-04-21 19:02:50 +0200 |
| commit | 43ac7015d69f6e40c2ce4c24cedf4f85bf43b92e (patch) | |
| tree | 7db66af501208b59024fa051df3b8bbc47edea21 | |
| parent | 17264e9dc27dc73c26af52294756d2566fabca3f (diff) | |
| download | unterricht-43ac7015d69f6e40c2ce4c24cedf4f85bf43b92e.tar.gz unterricht-43ac7015d69f6e40c2ce4c24cedf4f85bf43b92e.zip | |
add sample slides
| -rw-r--r-- | templates/slides.md | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/templates/slides.md b/templates/slides.md new file mode 100644 index 00000000..e1b7cfb3 --- /dev/null +++ b/templates/slides.md @@ -0,0 +1,99 @@ +--- +author: Florian Fischer +theme: Rochester +aspectratio: 169 +header-includes: | + \usepackage[school]{pgf-umlcd} + \usepackage{unicode-math} + \usepackage{tikz} + \usetikzlibrary{calc} +--- + + +## Klassendiagramm mit pgf-umlcd + +\begin{tikzpicture} + \begin{class}[text width=5cm]{SPIELAUTOMAT}{0,0} + \attribute{walze1 : SPIELWALZE} + \attribute{walze2 : SPIELWALZE} + \attribute{walze3 : SPIELWALZE} + \operation{AlleDrehen()} + \end{class} + + \begin{class}[text width=5cm]{SPIELWALZE}{6,0} + \attribute{hintergrund : KASTEN} + \attribute{farbsymbol : FARBKREIS} + \operation{Drehen()} + \end{class} + + \association{SPIELAUTOMAT}{}{1}{SPIELWALZE}{3}{} +\end{tikzpicture} + +## Klassendiagramm mit plain tikz + +\begin{center} +\begin{tikzpicture}[ +class/.style={ +draw, +rectangle, +minimum width={width("SCHUELER")}, +font=\small}] + +\node[class] (schueler) at (0,0) {SCHUELER}; + +\node[class] (akte) at (5, 0) {AKTE}; + +\draw(schueler.east) edge[above, align=center] node {\small > hat eine} (akte.west); +\end{tikzpicture} +\end{center} + +## Code + +\small + +::: columns +:::: {.column width=40%} +```java +class SCHUELER { + private String name; + + + void SCHUELER(String n, + double s) + { + name = n; + + } +} +``` +:::: + +:::: {.column width=60%} +```java +class AKTE { + public String spitzname; + private double notenschnitt; + + public void AKTE(double s) + { + notenschnitt = s; + spitzname = ""; + } +} +``` +:::: +::: + +\normalsize + +## Some Text in Boxes + +### Merke + +Der Grundsatz der **Datenkapselung** besagt, dass nur ein Objekt selbst Zugriff auf seine Attribute haben sollte. + +\pause + +\vspace{0.75cm} + +Der Zugriff von außen sollte nur über durch das Objekt bereitgestellte Methoden erfolgen. |
