I really need as much help you can give me on a matter we discussed a few months ago.
I left the problem, and moved on but now I have to solve it.
If you look at this link you can see what I was looking for: a way to drag\move the text that Is attached to a link
so I implemented your example and it works well but the side effects are still hard to solve.
I was able to make the label appear on the left side of the link using the offset. But when I start moving the nodes on the link's sides the link's label starts going crazy . I guess the problem lies in the middle point assumption we talked about but I donâ€™t know what to do about it and where to change this assumption.
you suggested to adjust the SimpleLabelDraggingTool to fix such issues but none of the methods runs when the nodes of the link is moving or even in the first time the label is loaded on the link , so I have no idea , what causes the label to move around and how to stop it from happening .
I guess the question is: how (which property) and where in the code can I make the label stop thinking the middle point is what counts and how to make the label return to its original position while moving any of the nodes the link is attached to .
One more thing , I need the label to be near point 0 of the link , meaning near its exit , so for links coming out of the left side of the node the should be aligned to the right of the link and when they exit the right side of a node they should be aligned to the left side of a link.
Here are some visual examples of the issue I'm having:
As I said the label moves freely by pressing ctrl (my implementation) and dragging it. But moving the left or right nodes of the link is making a mess. In this picture you can see, how label is above the cable when the right node is under the link:
While you can see the opposite occurs when I drag the right node above the link (the label jumps below the link like a mad label):
Here you can see how it is maintaining the middle point relation:
Many thanks ,