|
|
Re: Anchor Points [message #175042 is a reply to message #174839] |
Sat, 01 March 2008 18:47 |
Eclipse User |
|
|
|
Originally posted by: surayya.daimi.au.dk
Johan Wannheden wrote:
> How can I control where, around the bounds of a rounded rectangle (or
> other shape), connection points are placed?
>
> My goal is to avoid having overlapping connection lines in and out from
> nodes.
>
> Thanks in advance,
> Johan
Hi you should in the EditPart that is supposed to be connected to
another EditPart add two functions
public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart
arg0) the same for getTargetConnectionAnchor
There you should return a ConnectionAnchor that could be for example
ChopboxAnchor this algorithm makes connection points around the node in
the middle of each side.
Best Regards Surayya
|
|
|
Powered by
FUDForum. Page generated in 0.03370 seconds