I've found a way to achieve what I wanted:
Very generally, the first child must be added at ConnectionLocator.MIDDLE
, and the rest of the children relative to the child before them with the help of RelativeLocator
like this (line would be in a loop over all figure children in connection's edit part):
figure.add(childFigure,
new RelativeLocator((IFigure) figureChildren.get(currentIndex - 1),
0.5,
1.7);
I've written a blog post with more details.