2011-10-09 65 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

回答