Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Gef Connection source and endpoint location update
Gef Connection source and endpoint location update [message #755314] Tue, 08 November 2011 05:09 Go to next message Missing nameFriend
Messages: 41
Registered: July 2011
Hi friends,

i have an editpart's to which connections are made , when the editpart location is changed the connection endpoints also must update their location .
and also the connection to the editparts must occur only to the four sides of the rectangle. can can any one advice me how to accomplish it?
Re: Gef Connection source and endpoint location update [message #755453 is a reply to message #755314] Tue, 08 November 2011 14:59 Go to previous message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 243
Registered: July 2009
Location: L√ľnen
Senior Member

what you will have to do is to provide respective ConnectionAnchor implementations for your source and target figures, which your source and target EditParts will have to provide via the methods of the NodeEditPart interface (which they have to implement as being valid source/target for connections). There is no predefined connection anchor that provides your desired behavior, but you may easily create one by subclassing AbstractConnectionAnchor. It already provides a listener mechanism, which will update the locations upon changes to the reference figure.

Previous Topic:Is the GEF really a MVC framework?
Next Topic:Gef Connections getting the center of the of the rectangle edge
Goto Forum:

Current Time: Sun Oct 17 18:30:02 GMT 2021

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

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

Back to the top