ScrollPane and PolylineConnection problem whith Draw2D [message #122050] |
Fri, 12 March 2004 10:50 |
Eclipse User |
|
|
|
Hello,
I am trying to show a simple graph in a draw2D figure.
If i show only the nodes without connectionq it run fine, but if I put
them (Connection lines) and i scroll the window, my window freeze. I think
that the problem come from the changing position of my children figure
(nodes) when i Scroll.
Thanks.
Sabri.
I have write a piece of my code:
I have a ScrollPane taking a my main Figure:
ScrollPane scrollPane = new ScrollPane();
scrollPane.setContents(figure);
lWSystem.setContents(scrollPane);
And for the connection I only do that in my main figure class for evry
edges.
if (from != null && to != null) {
PolylineConnection conn = new PolylineConnection();
conn.setSourceAnchor(new ChopboxAnchor(from));
conn.setTargetAnchor(new ChopboxAnchor(to));
add(conn);
}
|
|
|
Powered by
FUDForum. Page generated in 0.06853 seconds