Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Programtically added Elements - How to place them?
Programtically added Elements - How to place them? [message #671297] Tue, 17 May 2011 12:37 Go to next message
akoeck is currently offline akoeck
Messages: 62
Registered: December 2010
Member
Hi there,

I add my Elements programatically. It could be different types of nodes and different types of connections between the nodes. But how do I handle the look and place the elements correct.

What I want is to place the created elements, especially the connections should be straight lines only with 90 degree angles. The elements should be placed depending on the connection. So the element which is the source of the connection should be first, then the connection and then the target node.

I hope you understand what I mean and can help me.
Re: Programtically added Elements - How to place them? [message #671974 is a reply to message #671297] Thu, 19 May 2011 13:44 Go to previous messageGo to next message
akoeck is currently offline akoeck
Messages: 62
Registered: December 2010
Member
No one with an idea how to get the connection only with 90 degree bends?
(no subject) [message #672396 is a reply to message #671974] Fri, 20 May 2011 21:52 Go to previous messageGo to next message
Eclipse User
Originally posted by:

Am 19.05.2011 15:44, schrieb No real name:
> No one with an idea how to get the connection only with 90 degree bends?
Hi,
I do not get the idea what u want to do, may uploading an image would be
helpful. If u want to connect different nodes with connection with 90
degree bends u could implement ur own Layout and use it.
Re: (no subject) [message #673670 is a reply to message #672396] Tue, 24 May 2011 12:50 Go to previous message
akoeck is currently offline akoeck
Messages: 62
Registered: December 2010
Member
Eclipse User wrote on Fri, 20 May 2011 17:52
Originally posted by: <a href="mailto:"></a>

Am 19.05.2011 15:44, schrieb No real name:
> No one with an idea how to get the connection only with 90 degree bends?
Hi,
I do not get the idea what u want to do, may uploading an image would be
helpful. If u want to connect different nodes with connection with 90
degree bends u could implement ur own Layout and use it.

I add the nodes and the connections between the nodes programmatically, thats no problem. But the some connections don't look quite good. So what I want is that the nodes are placed somehow in a hierarchical way and the connections should be straight lines and when they have bend they should only be 90 degrees.
For example it should look like this.
http://www.abload.de/img/example4t0k.jpg
Previous Topic:Load serialized XMI file after change in graphical representation
Next Topic:Redundant space in compartments
Goto Forum:
  


Current Time: Tue Sep 30 10:27:27 GMT 2014

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

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