尝试使用 tikz 绘制此图形

尝试使用 tikz 绘制此图形

我正在尝试绘制这个图形:

数字

在此处输入图片描述


我使用了 TikZiT,但我也可以直接使用 TikZ 或 Pgfplots,因为我对它们都不了解。到目前为止,我得到了以下结果:

在此处输入图片描述

\begin{tikzpicture}
\begin{pgfonlayer}{nodelayer}
    \node [style=Blue] (3) at (0, 9) {VistaEstacioEsqui};
    \node [style=Blue] (5) at (-10, 7) {IniciadorEstacioEsqui};
    \node [style=Blue] (6) at (0, 3) {EstacioEsqui};
    \node [style=Blue] (8) at (-10, 2) {LlistaRemuntadors};
    \node [style=Blue] (9) at (7, -6) {Pista};
    \node [style=Blue] (10) at (0, 0) {ArrayList};
    \node [style=Blue] (11) at (-10, -2) {Remuntador};
    \node [style=Blue] (12) at (-4, -4) {Teleferic};
    \node [style=Blue] (13) at (-7.25, -7) {Teleesqui};
    \node [style=Blue] (14) at (-12, -7) {Telecadira};
    \node [style=Blue] (15) at (-16.5, -5) {Telecabina};
    \node [style=Blue] (16) at (-19, -2) {CintaTransportadora};
    \node [style=new style 0] (17) at (-10, 11) {Menu};
    \node [style=redish] (19) at (8, 4) {Meteo};
    \node [style=Blue] (20) at (10, 0) {LlistaPistes};
\end{pgfonlayer}
\begin{pgfonlayer}{edgelayer}
    \draw [style=new edge style 0] (3) to (6);
    \draw [style=new edge style 0] (5) to (3);
    \draw [style=new edge style 0] (3) to (17);
    \draw [style=new edge style 0] (6) to (19);
    \draw [style=new edge style 0] (6) to (8);
    \draw [style=new edge style 0] (8) to (10);
    \draw [style=new edge style 0] (8) to (11);
    \draw [style=new edge style 1] (11) to (16);
    \draw [style=new edge style 1] (11) to (15);
    \draw [style=new edge style 1] (11) to (14);
    \draw [style=new edge style 1] (11) to (13);
    \draw [style=new edge style 1] (11) to (12);
    \draw [style=new edge style 0] (6) to (20);
    \draw [style=new edge style 0] (20) to (10);
    \draw [style=new edge style 0] (20) to (9);
\end{pgfonlayer}
\end{tikzpicture}

有人能帮我改进它吗?我的代码相当呆板,没有这些特殊的箭头(“implementa”)。正如你们许多人可以想象的那样,这是一个 OOP Java 程序的图表。特殊箭头从子类指向其超类。

提前致谢!

相关内容