3ui.tex 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Note that since the application is still under construction, so not all screenshots may be up to date.
  2. \section{Graphical presentation of the running algorithm}\label{sec:graphicalPresentationOfTheRunningAlgorithm}
  3. \TODO{under construction}
  4. \TODO{reference~\ref{fig:example}}
  5. \TODO{reference~\ref{fig:originalpapergraph}}
  6. \TODO{reference~\ref{fig:sketch}}
  7. \begin{figure}
  8. \centering
  9. \begin{subfigure}{\textwidth}
  10. \centering
  11. \includegraphics[width=\linewidth]{img/bk-example-theirs}
  12. \caption{An example graph directly taken from the paper of Brandes and Köpf~\cite{brandes_fast_2001}.}
  13. \label{fig:theirs}
  14. \end{subfigure}\\\vspace{4mm}
  15. \begin{subfigure}{\textwidth}
  16. \centering
  17. \includegraphics[width=0.4\linewidth]{img/bk-example-ours}
  18. \caption[The same graph as~\ref{fig:theirs}, displayed by \appname.]{The same graph as~\ref{fig:theirs}, displayed by \appname.
  19. The layouts are leftmost (first column), rightmost (second column), lower (first row) and upper (second row), respectively.}
  20. \label{fig:ours}
  21. \end{subfigure}\\\vspace{4mm}
  22. \caption[Comparison with~\cite{brandes_fast_2001}]{Comparison of the implementation with the results of Brandes and Köpf~\cite{brandes_fast_2001}}
  23. \label{fig:originalpapergraph}
  24. \end{figure}
  25. \begin{figure}[htp]
  26. \centering
  27. \includegraphics[width=0.6\linewidth]{img/example}
  28. \caption[A simple graph with 5 nodes]{A simple graph with 5 nodes after the four extremal layout have been computed, but not balanced yet.
  29. The vertical directions are down (upper row), up (lower row) and the horizontal directions are left (left column) and right (right column).
  30. The background colors of the nodes display which block they belong to: For example the two blue nodes on the top right are in the same block.
  31. Round nodes are the roots of the blocks.
  32. A colored circle on a node indicates the class that this node belongs to and is also the color of the topmost sink in the block graph.
  33. The node that is currently in the focus of the algorithm (whatever this means for the current stage) is highlighted with a grey square (here the node in the rightmost column on the bottom right).
  34. Although edges are not drawn during the node placement phase we added them here as straight lines to improve readability.}
  35. \label{fig:example}
  36. \end{figure}
  37. \begin{figure}[htp]
  38. \centering
  39. \includegraphics[width=\linewidth]{img/skizze}
  40. \caption[First sketch of the planned layout]{A first sketch of the planned layout, created with Microsoft Paint.
  41. The buttons are (first row, from left to right): step over, step into, step out, run, pause, debug; and (second row, from left to right): step back, step back out, run backwards.
  42. The actions corresponding to the buttons are the same as described for the keyboard input in table~\ref{table:keys}, at least for the features that are already implemented.
  43. The left four rectangles show the progress of the four extremal layouts.
  44. The right rectangle shows pseudocode of the algorithm and the position of the current step.}
  45. \label{fig:sketch}
  46. \end{figure}
  47. \section{User interface}\label{sec:userInterface}
  48. Currently the only way to interact with the application is by keyboard events.
  49. It is planned to add both additional commands as well as some kind of graphical interface, see chapter~\ref{ch:progress}.
  50. The possible inputs are listed in table~\ref{table:keys}.
  51. \begin{table}[htp]
  52. \begin{longtable}{|l|l|}
  53. \hline
  54. Key & Action \\\hline\hline
  55. Left arrow key & Perform one forward step of the algorithm. \\\hline
  56. Right arrow key & Perform one backward step---i.e.\ undo one step of the algorithm. \\\hline
  57. P & Pause/unpause the automatic execution. Initially paused. \\\hline
  58. D & Print a debug table to standard out. \\\hline
  59. \end{longtable}
  60. \caption{Overview of the currently available keyboard commands.}
  61. \label{table:keys}
  62. \end{table}