Commit a2f08297 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Started writing new 'Design' chapter.

parent 562d1db3
...@@ -49,8 +49,9 @@ ...@@ -49,8 +49,9 @@
\end{tikzpicture} \end{tikzpicture}
} }
\newcommand{\simplediagram}{ \newcommand{\basicdiagram}[1]{
\begin{figure}[H] \begin{figure}[H]
\label{fig:basicdiagram}
\center \center
\architecture{ \architecture{
\node[block, dashed, below of=driver] (arch) {Architecture} \node[block, dashed, below of=driver] (arch) {Architecture}
...@@ -58,11 +59,73 @@ ...@@ -58,11 +59,73 @@
\node[block, below of=arch] {Application} \node[block, below of=arch] {Application}
edge[linefrom] node[right] {gestures} (arch); edge[linefrom] node[right] {gestures} (arch);
} }
\caption{Translation of driver-specific messages to gestures.} \caption{#1}
\end{figure} \end{figure}
} }
\newcommand{\completediagrams}{ \newcommand{\driverdiagram}[1]{
\begin{figure}[H]
\label{fig:driverdiagram}
\center
\architecture{
\node[block, below of=driver] (eventdriver) {Event driver}
edge[linefrom] node[right, near end] {driver-specific messages} (driver);
\node[block, below of=eventdriver, dashed] (analysis) {Event analysis}
edge[linefrom] node[right] {events} (eventdriver);
\node[block, below of=analysis] {Application}
edge[linefrom] node[right, near start] {gestures} (analysis);
\node[right of=eventdriver, xshift=2em] (dummy) {};
\group{eventdriver}{eventdriver}{dummy}{analysis}{Architecture}
}
\caption{#1}
\end{figure}
}
\newcommand{\widgetdiagram}[1]{
\begin{figure}[H]
\label{fig:widgetdiagram}
\center
\architecture{
\node[block, below of=driver] (eventdriver) {Event driver}
edge[linefrom] node[right, near end] {driver-specific messages} (driver);
\node[block, below of=eventdriver] (widget) {Widget tree}
edge[linefrom] node[right] {events} (eventdriver);
\node[block, right of=widget, xshift=7em, dashed] (analysis) {Event analysis}
edge[linefrom, bend right=10] node[above] {events} (widget)
edge[lineto, bend left=10] node[] {gestures} (widget);
\node[block, below of=widget] {Application}
edge[linefrom] node[right, near start] {gestures} (widget);
\group{eventdriver}{eventdriver}{analysis}{widget}{Architecture}
}
\caption{#1}
\end{figure}
}
\newcommand{\trackerdiagram}[1]{
\begin{figure}[H]
\label{fig:trackerdiagram}
\center
\architecture{
\node[block, below of=driver] (eventdriver) {Event driver}
edge[linefrom] node[right, near end] {driver-specific messages} (driver);
\node[block, below of=eventdriver] (widget) {Widget tree}
edge[linefrom] node[right] {events} (eventdriver);
\node[block, right of=widget, xshift=7em] (tracker) {Gesture trackers}
edge[linefrom, bend right=10] node[above] {events} (widget)
edge[lineto, bend left=10] node[] {gestures} (widget);
\node[block, below of=widget] {Application}
edge[linefrom] node[right, near start] {gestures} (widget);
\group{eventdriver}{eventdriver}{tracker}{widget}{Architecture}
}
\caption{#1}
\end{figure}
}
\newcommand{\examplediagrams}{
\begin{figure}[H] \begin{figure}[H]
\hspace{-2.3em} \hspace{-2.3em}
\subfigure[Architecture using a single widget, demonstration gesture \subfigure[Architecture using a single widget, demonstration gesture
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment