Splitting connections [message #1042685] |
Tue, 16 April 2013 14:59  |
Eclipse User |
|
|
|
Hi,
I'm implementing functionality for splitting a connection. If the
connection is a free form connection with connection points, I'd like to
move connection points to the appropriate resulting connections, so the
overall shape does not change (although there's a new node in-between).
To do so, I need to iterate over all the line segments of the
connection, but I cannot find out how to find the location of the start
and end anchors. I seems these are not stored in the connection or
anchors and instead are computed by the GEF implementation?
Another solution would be to have the context object provide the
"segment number" in addition to the x,y location, but that is not
implemented?
Hallvard
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04766 seconds