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 00:09 Go to next message
karthick9686@gmail.com Missing name
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 09:59 Go to previous message
Alexander Nyssen is currently offline Alexander Nyssen
Messages: 40
Registered: July 2009
Location: L√ľnen
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: Thu Jul 24 02:29:30 EDT 2014

Powered by FUDForum. Page generated in 0.02721 seconds