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
karthick9686@gmail.com Missing nameFriend
Messages: 41
Registered: July 2011
Member
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: 244
Registered: July 2009
Location: Lünen
Senior Member
Hallo,

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.

Cheers,
Alexander
Previous Topic:Is the GEF really a MVC framework?
Next Topic:Command Stack change and save action
Goto Forum:
  


Current Time: Tue Apr 16 22:06:27 GMT 2024

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

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

Back to the top