Connection routing style while drawing [message #57798] |
Fri, 29 September 2006 22:25 |
Eclipse User |
|
|
|
Originally posted by: tim.rti.com
In my application, a user can add rectangles as well as make connections
between rectangles. Ideally, when a user makes connections, the connection
will be rectilinear, avoiding obstacles.
I modified my connector editpart (extends ConnectionNodeEditPart)
createConnectionFigure method with the following code:
RoutingStyle style = (RoutingStyle) ((View) getModel())
..getStyle(NotationPackage.eINSTANCE.getRoutingStyle());
style.setAvoidObstructions(true);
style.setRouting(Routing.RECTILINEAR_LITERAL);
The problem is, when a user clicks on a rectangle and starts to drag away
from it, there is a straight dotted line that appears. Is there any way to
make this dotted line also rectilinear and avoid obstacles?
Thanks in advance!
Tim
|
|
|
|
Powered by
FUDForum. Page generated in 0.03005 seconds