Brain Dump

Model-Delegate

Tags
soft-eng

A transform centre architecture for graphical user interfaces.

\begin{figure}
  \centering
  \begin{tikzpicture}[line/.style={very thick}]
    \begin{umlpackage}{Presentation Layer}
      \begin{umlpackage}{java/awt}\end{umlpackage}
      \begin{umlpackage}[below=of java/awt]{javax/swing}\end{umlpackage}
      \umlsimpleclass[right=1cm of java/awt]{MyListener};
      \umlsimpleclass[below=1.75cm of MyListener]{MyFrame};
    \end{umlpackage}

    \begin{umlpackage}[right=3cm]{Application Layer}\end{umlpackage}

    \draw [line, dashed, ->] (MyListener) -- (java/awt);
    \draw [line, dashed, ->] (MyFrame) -- (javax/swing);
    \draw [line, dashed, ->] (Application Layer) -- (MyListener);
    \draw [line, ->] (MyFrame) -- (MyListener);
    \draw [line, dashed, ->] (MyFrame.east) -- (Application Layer.south); %(Application Layer.south);
  \end{tikzpicture}
  \caption{Model delegate diagram.}
\end{figure}