2011-10-09 62 views
0

我正在研究类似于这个问题中的图的应用程序: SWT tree > move the verticle scrollbar to the left of the tree without changing the orientation 我不知道如何绘制连接线,如图所示。 我的天真的解决方案是,我添加了很多“ - ”标签,它最终像这样的图片:http://i.imgur.com/hCLGL.pngSWT树:从标签画线到右侧

此外,我想添加虚线来表示子父母关系。这是一个类似的问题http://www.eclipsezone.com/eclipse/forums/t82430.html,但没有解决方案。

+0

我发现在http://www.eclipse.org/articles/article.php?file=Article-CustomDrawingTableAndTreeItems/index.html一个可行的解决方案。 – v4r

回答