Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sat Jul 05 14:06:33 EDT 2025

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

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

Back to the top