aboutsummaryrefslogtreecommitdiff
path: root/Info/10/2/Datenkapselung/capsule.tikz
blob: 13685eea853abd37a51903a4f992fa1c28fd82f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
\begin{tikzpicture}
\only<-3> {
	\draw (0,0) circle (3);
	\draw[opacity=0] (0,0) circle (4.5);
}

\only<4-> {
	\draw[fill=orange!40] (0,0) circle (4.5);
	\node[rotate=90] (public) at (-3.5, 0) {\color{orange} \Large \textbf{public}};

	\draw[fill=blue!40] (0,0) circle (3);
	\node[rotate=90] (private) at (-1.75, 0) {\color{blue} \Large \textbf{private}};
	\draw(33:1) -- (33:4.5);
	\draw(147:1) -- (147:4.5);

}

\only<-4> {
	\node[opacity=0] (getSchnitt) at (0, 3.75) {SchnittGeben()};
	\node[opacity=0] at ($(getSchnitt) + (0, 0.75)$) {\huge $\bm{\Uparrow}$};
}
\only<5-> {
	\node (getSchnitt) at (0, 3.75) {SchnittGeben()};
	\node at ($(getSchnitt) + (0, 0.75)$) {\huge $\bm{\Uparrow}$};
}

\draw[fill=white] (0,0) circle (1);
\node (akte) at (0,0) {AKTE: a1};

\node (schnitt) at (-0.3,2.1) {\texttt{schnitt:}};
\only<1-2, 4->{
	\node[draw, right of=schnitt, xshift=0.3cm] (schnittValue) {\texttt{3.2}};
}
\only<3>{
	\node[draw, fill=red!50, right of=schnitt, xshift=0.3cm] (schnittValue) {\texttt{1.0}};
}

\node[] (setSchnitt) at (0,1.6) {\texttt{SchnittSetzen(s)}};

\only<-3> {
	\node (nick) at (0,-1.7) {\texttt{spitzname:}};
	\node[draw, right of=nick, xshift=0.45cm] (nickValue) {\texttt{"J"}};
}
\only<4-> {
	\node (nick) at (0,-3.5) {\texttt{spitzname:}};
	\node[draw, right of=nick, xshift=0.45cm] (nickValue) {\texttt{"J"}};
}

\only<2>{
	\node[draw, circle, line width=3pt, minimum width=1.2cm] (lense) at (schnittValue) {};
	\draw[line width=3pt] (lense.south east) -- ($(lense.south east) + (0.5, -0.5cm)$);
}

\only<3>{
	\node[rotate=15, right of=schnittValue] (finger) {\includegraphics[width=2cm]{img/pointing-right-finger.png}};
}
\end{tikzpicture}