Link intersections

Hi,

I have a JGoIconicNode with its label at the bottom.
I use a JGoLink and connect it to another JGoIconicNode.
I set the bouding rectangle of the ports to be the bounding rectangle of the nodes so that the links get truncated at the boundary.
This is what I want but...
When the link is vertically upwards it crosses over the destination nodes label and partly obscures it. How can I force the link to be truncated at the boundary of the nodes label?
I've tried getting the bounding rectangle of the node and the label and
using SwingUtilities#computeUnion(...) and setting the ports bounding rectangle to the result of that union but it seems not to work...
Thanks
Mike

I think the easiest way to get the behavior you want is to set the port's PortObject to be the entire node similar to the following:

JGoIconicNode snode = new JGoIconicNode("an iconic node");
snode.getImage().setSize(50, 50);
snode.getImage().loadImage(App.class.getResource("doc.gif"), true);
snode.getPort().setPortObject(snode);

[QUOTE=ssmith]

I think the easiest way to get the behavior you want is to set the port's PortObject to be the entire node similar to the following:

JGoIconicNode snode = new JGoIconicNode("an iconic node");
snode.getImage().setSize(50, 50);
snode.getImage().loadImage(App.class.getResource("doc.gif"), true);
snode.getPort().setPortObject(snode);
[/quote]
That does it.
Many thanks
Mike