Change the relation source & target point [message #146453] |
Tue, 14 August 2007 03:52  |
Eclipse User |
|
|
|
I have implemented an layout algorithm to reorganize the nodes into a
diagram, but now I want to change the source and target point of the
relations between 2 nodes. Somebody knows how to do this?
I try to access to the Bendpoints of the relation, but I think it's not
what I want...
Thanks. Marc.
|
|
|
|
Re: Change the relation source & target point [message #146601 is a reply to message #146510] |
Wed, 15 August 2007 06:12  |
Eclipse User |
|
|
|
I try to modify the ID of the Anchor (the class that implements Anchor is
called IdentityAnchorImpl, so the class is IdentityAnchor). So I try to
modify this ID, and I put for example "0.5, 0.99" in the source of the
relation, but the change doesn't reflect in the diagram. I want the
relation starts in the down-center of the source, and finishes in the
top-center of the target ("0.5, 0.01", for example).
Dmitry Stadnik wrote:
> They are calculated by connection anchors. Nodes return them for
> incoming and outgoing connections.
> @see org.eclipse.draw2d.ConnectionAnchor, org.eclipse.gef.NodeEditPart
|
|
|
Powered by
FUDForum. Page generated in 0.04607 seconds