Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Change the relation source & target point
Change the relation source & target point [message #146453] Tue, 14 August 2007 07:52 Go to next message
Marc Mising name is currently offline Marc Mising nameFriend
Messages: 193
Registered: July 2009
Location: Valencia, Spain
Senior Member
I have implemented an layout algorithm to reorganize the nodes into a
diagram, but now I want to change the source and target point of the
relations between 2 nodes. Somebody knows how to do this?

I try to access to the Bendpoints of the relation, but I think it's not
what I want...

Thanks. Marc.
Re: Change the relation source & target point [message #146510 is a reply to message #146453] Tue, 14 August 2007 09:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

They are calculated by connection anchors. Nodes return them for
incoming and outgoing connections.

@see org.eclipse.draw2d.ConnectionAnchor, org.eclipse.gef.NodeEditPart

Marc wrote:
> I have implemented an layout algorithm to reorganize the nodes into a
> diagram, but now I want to change the source and target point of the
> relations between 2 nodes. Somebody knows how to do this?
>
> I try to access to the Bendpoints of the relation, but I think it's not
> what I want...
>
> Thanks. Marc.
>
Re: Change the relation source & target point [message #146601 is a reply to message #146510] Wed, 15 August 2007 10:12 Go to previous message
Marc Gil is currently offline Marc GilFriend
Messages: 81
Registered: July 2009
Member
I try to modify the ID of the Anchor (the class that implements Anchor is
called IdentityAnchorImpl, so the class is IdentityAnchor). So I try to
modify this ID, and I put for example "0.5, 0.99" in the source of the
relation, but the change doesn't reflect in the diagram. I want the
relation starts in the down-center of the source, and finishes in the
top-center of the target ("0.5, 0.01", for example).

Dmitry Stadnik wrote:

> They are calculated by connection anchors. Nodes return them for
> incoming and outgoing connections.

> @see org.eclipse.draw2d.ConnectionAnchor, org.eclipse.gef.NodeEditPart
Previous Topic:Replacing GEF model with EMF; go GMF? Or just EMF+GEF?
Next Topic:Migrating to GMF 2.0 and code generation problem
Goto Forum:
  


Current Time: Tue Jan 28 15:17:23 GMT 2025

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

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

Back to the top