Skip to main content



      Home
Home » Eclipse Projects » GEF » ScrollPane and PolylineConnection problem whith Draw2D
ScrollPane and PolylineConnection problem whith Draw2D [message #122050] Fri, 12 March 2004 10:50
Eclipse UserFriend
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);
}
Previous Topic:AbstractConnectionCreationTool howto
Next Topic:refreshChildren
Goto Forum:
  


Current Time: Wed Apr 30 18:07:37 EDT 2025

Powered by FUDForum. Page generated in 0.06853 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top