Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Connections are not shown
Connections are not shown [message #198018] Fri, 07 October 2005 00:00 Go to next message
Eclipse UserFriend
Originally posted by: cleversons.gmail.com

Hi again,

I'm still trying to show connections among the nodes of the application
I'm working on. I will give you a brief overview of my architecture so
that you can help me to spot the problem.

- There is one GraphView which extends LayeredPane (so its layout is
StackLayout by default)
- Inside this GraphView there is one NodeLayer which extends Layer and set
its layout to ToolbarLayout.
- Inside this GraphView there is also a ConnectionLayer
(org.eclipse.draw2d.ConnectionLayer)

After adding those 2 layers (Node and Connection) into the GraphView, the
application populates the NodeLayer with many Nodes.
After putting all nodes into the NodeLayer, the application creates
connections (PolylineConnection) among them and then add those connections
into the ConnectionLayer.

The result is that all the connections are added to the same point. I
printed the con.getStart() and con.getEnd() values and they are set to
(0,0) and (100, 100) respectively. All of them.

My nodes are displayed without any problem but all the connection are
drawn on the same place.

Could someone please help me to solve this problem?
Any help is appreciated. Thank you very much.

Best Regards
Cleverson Schmidt
Re: Connections are not shown [message #198110 is a reply to message #198018] Fri, 07 October 2005 15:20 Go to previous message
Eclipse UserFriend
Originally posted by: cleversons.gmail.com

Is it possible that the problem lies in the layout of my NodeLayer?

By the way, this is how I am linking my layers:

public GraphView(Model model) {
conLayer = new ConnectionLayer();
conLayer.setConnectionRouter(new ManhattanConnectionRouter());
nodeLayer = new NodeLayer();
add(conLayer);
add(methodFigureLayer);
buildMethodsCallGraph();
}

The buildMethodsCallGraph puts many nodes in the NodeLayer and afterwards
creates the connections between them.

Please help
Previous Topic:Is there a GEF requirements document?
Next Topic:XMI
Goto Forum:
  


Current Time: Sat Apr 27 04:21:27 GMT 2024

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

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

Back to the top