|Re: XYAnchor to EllipseAnchor: is it possible? [message #734182 is a reply to message #732323]
||Fri, 07 October 2011 00:05
| Michael Golubev
Registered: July 2009
I suspect that you just want to have the connections to your oval' figures to go directly to the oval bounds, not to the enclosing rectangle bounds, no matter how exactly it is done.
In this case just ensure that the figure returned from EditPart#getFigure() method instanceof IOvalAncorableFigure. If you are using GMFT than thois figure is normally a DefaultSizeNodeFigure, and you only to implement getOvalBounds by delegating to the primary shape.
If SlidableOvalAnchor is not good for you, you still might do the change above and debug to see how the SlidableOvalAnchor internally replaces the default one in this case.
Michael "Borlander" Golubev
Eclipse Committer (GMF, UML2Tools)
at Montages Think Tank, Prague, Czech Republic
Montages AG, Zürich, Switzerland
Powered by FUDForum
. Page generated in 0.02079 seconds