|Re: Connections with Horizontal start and end & Moving Bendpoints [message #756200 is a reply to message #756186]
||Fri, 11 November 2011 13:11
| Matteo Miraz
Registered: March 2011
the code you posted is really close to the one I wrote
I confirm that it is working correctly, as the bendpoint is not moved. However, I would like to prevent the user to move the bend point. Let me explain better. With your (and mine) implementation, the user can select and move the first (last) bendpoint. While the left button of the mouse is pressed, the user thinks that he can move the bend point (this is what confused me). However, as soon as the left button is released, the bendpoint returns to the original position.
Conversely, I'd expect that the user was forbidden to move the bendpoint (and not just restoring the correct position of the bendpoint afterwards)... is it possible to do that?
ps. Since you mentioned the smaller points, usable to add new bendpoints, let me add that I also disabled the ability of the user to add a bendpoint in the first and last position. The code is like the one you posted, except that (1) it extends DefaultAddBendpointFeature, and (2) it compares bendpointIndex with bendpoints.size() (without -1).
Powered by FUDForum
. Page generated in 0.01559 seconds