3ui.tex 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Note that 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. The current development status is displayed in figure~\ref{fig:full-application-example}.
  4. Another example graph and an explanation of the shapes and colors is provided in figure~\ref{fig:example}.
  5. Figure~\ref{fig:originalpapergraph} compares our results to those of Brandes and Köpf~\cite{brandes_fast_2001}.
  6. Some features that are not visible from the screenshots:
  7. \begin{itemize}
  8. \item Hovering the mose over a node highlights it in all layouts.
  9. \item It is possible to configure the view to only show the extremal layout the algorithm is currently working on.
  10. This can be helpful when working with large graphs on small screens.
  11. \item Tooltips are shown when hovering over code lines and nodes in the graph,
  12. These tooltips show the state of the variables.
  13. \item The display scales with the size of the window.
  14. \end{itemize}
  15. To avoid clutter we do not draw the edges of the block graph.
  16. \begin{figure}[htp]
  17. \centering
  18. \includegraphics[width=\linewidth]{img/full-application-example}
  19. \caption[Full application window]{The full window of the application before any steps of the algorithm have been executed.
  20. The displayed graph has been loaded from figure~\ref{fig:json-example}.
  21. 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 over, step back into, step back out, run backwards, preferences, load graph, save graph, generate random graph.
  22. 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 (all of them).
  23. The left four rectangles show the progress of the four extremal layouts.
  24. The right rectangle shows pseudocode of the algorithm and the position of the current step.}
  25. \label{fig:full-application-example}
  26. \end{figure}
  27. \begin{figure}[htp]
  28. \centering
  29. \includegraphics[width=0.6\linewidth]{img/example}
  30. \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.
  31. The vertical directions are upper (upper row), lower (lower row) and the horizontal directions are leftmost (left column) and rightmost (right column).
  32. The colors of the nodes display which block they belong to: For example the two red nodes in the leftmost upper extremal layout are in the same block.
  33. Grey nodes are their own blocks consisting of only one node.
  34. Round nodes are the roots of the blocks.
  35. The background color of a node indicates the class that this node belongs to.
  36. The node that is currently in the focus of the algorithm (whatever this means for the current stage) is highlighted in black color.
  37. Although edges are not drawn during the node placement phase we added them here as straight lines to improve readability.
  38. If any edge was marked as conflicted, it would have been drawn in red color.
  39. To provide this information to the user at runtime a legend has been added, which is visible in figure~\ref{fig:full-application-example}}.
  40. \label{fig:example}
  41. \end{figure}
  42. \begin{figure}[htp]
  43. \centering
  44. \begin{subfigure}{\textwidth}
  45. \centering
  46. \includegraphics[width=0.9\linewidth]{img/bk-example-theirs}
  47. \caption{An example graph directly taken from the paper of Brandes and Köpf~\cite{brandes_fast_2001}.}
  48. \label{fig:theirs}
  49. \end{subfigure}\\\vspace{4mm}
  50. \begin{subfigure}{\textwidth}
  51. \centering
  52. \includegraphics[width=0.75\linewidth]{img/bk-example-ours}
  53. \caption[The same graph as~\ref{fig:theirs}, displayed by \appname.]{The same graph as~\ref{fig:theirs}, displayed by \appname.
  54. The layouts are leftmost (first column), rightmost (third column), upper (first row) and lower (third row), respectively.
  55. The balanced layout is in the center.
  56. The narrower nodes are dummy nodes.}
  57. \label{fig:ours}
  58. \end{subfigure}\\\vspace{4mm}
  59. \caption[Comparison to Brandes and Köpf]{Comparison of the implementation to the results of Brandes and Köpf~\cite{brandes_fast_2001}}
  60. \label{fig:originalpapergraph}
  61. \end{figure}
  62. \section{User interface}\label{sec:userInterface}
  63. Currently the two main ways to interact with the application are keyboard events and graphical button-clicking.
  64. The possible keyboard inputs are listed in table~\ref{table:keys}.
  65. To improve the user experience even further, these can also be used by clicking on one of the buttons displayed in figure~\ref{fig:full-application-example}.
  66. \begin{table}[htp]
  67. \centering
  68. \small
  69. \begin{longtable}{l p{12cm}}
  70. \rowcolor{gray!50}
  71. \textbf{Key} & \textbf{Action} \\
  72. Alt + Left arrow key & Perform one forward step of the algorithm, \enquote{step into}. \\
  73. \rowcolor{gray!25}
  74. Alt + Right arrow key & Perform one \enquote{step into} in backwards direction---i.e.\ undo one step of the algorithm. \\
  75. Alt + Up arrow key & Perform one \enquote{step over} in backwards direction. \\
  76. \rowcolor{gray!25}
  77. Alt + Down arrow key & Perform one \enquote{step over} in forwards direction. \\
  78. Alt + Page down & Perform one \enquote{step out} in forwards direction. \\
  79. \rowcolor{gray!25}
  80. Alt + Page up & Perform one \enquote{step out} in backwards direction. \\
  81. Alt + P & Activate automatic forwards execution. \\
  82. \rowcolor{gray!25}
  83. Alt + R & Activate automatic backwards execution. \\
  84. Alt + Pause & Pause automatic execution. \\
  85. \rowcolor{gray!25}
  86. Alt + G & Generate a random graph (opens dialog window~\ref{fig:random-graph-dialog}).
  87. Ensures that the generated graph is connected.\\
  88. Alt + S & Save the current graph to a file (opens a dialog window). \\
  89. \rowcolor{gray!25}
  90. Alt + L & Load a graph from a file (opens a dialog window). \\
  91. Alt + D & Show a debug table (opens window~\ref{fig:debug-table}) and also printlines its content. \\
  92. \rowcolor{gray!25}
  93. Alt + O & Opens the preferences dialog~\ref{fig:preferences}. \\
  94. \end{longtable}
  95. \caption[Overview of the available keyboard commands]{Overview of the available keyboard commands.
  96. The lazy user might not want to learn these by rote but instead use the buttons displayed in figure~\ref{fig:full-application-example}.}
  97. \label{table:keys}
  98. \end{table}
  99. The decision to open new windows was made to save room in each single window.
  100. For example the fields for generating a random graph are rarely used, so the were chosen to be displayed in a separate dialog when needed.
  101. There is one interaction that is available neither on keyboard nor on a button: Breakpoints.
  102. For this, the user performs a triple click on one of the lines in the pseudocode or a single click on one of the line numbers.
  103. Upon reaching the beginning of that stage (beginning in forwards direction) the automatic execution pauses.