Skip to main content



      Home
Home » Modeling » Graphiti » Dynamic locations/points
Dynamic locations/points [message #875133] Tue, 22 May 2012 03:51 Go to next message
Eclipse UserFriend
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 04:00 Go to previous messageGo to next message
Eclipse UserFriend
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 04:37 Go to previous message
Eclipse UserFriend
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: Sat Jul 12 12:15:51 EDT 2025

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

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

Back to the top