Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Dynamic locations/points
Dynamic locations/points [message #875133] Tue, 22 May 2012 07:51 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
I have a Shape A connected to Shape B by a FreeFormConnection with 2 bend points, each below the Shape, so, it looks like the ManhattenConnection...

Now, if I move Shape A, then, the bend point below it must be moved with it automatically. I have disabled bend points to be moveable (returning null for getMoveBendpointFeature)...
How do I achieve this? Is there a way to define a "dynamic location/point"? (Location/Point of bend point auotmatically moves by a specific x/y offset whenever the source/target anchor is moved, for example)
Re: Dynamic locations/points [message #875140 is a reply to message #875133] Tue, 22 May 2012 08:00 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
There's no automatism here. You will need to modify/correct the coordinates
of the bendpoint in the move feature of your shape.

Michael
Re: Dynamic locations/points [message #875154 is a reply to message #875140] Tue, 22 May 2012 08:37 Go to previous message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
Thanks for the hint!

I just debugged into the DefaultMoveShapeFeature which has some methods I would like to re-use, e.g. calculateConnectedConnections...
Any intentions to mark those re-usable methods protected/public?
Previous Topic:zigzag connection shape
Next Topic:Different connection visualization
Goto Forum:
  


Current Time: Thu Apr 25 16:49:08 GMT 2024

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

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

Back to the top