Site a = figureA.getE();
Site b = figureB.getN();
connectorA = new StraightConnector(a, b);
// Add the circle and arrowhead to it
Blob blob = new Blob(a.getX(), a.getY(), a.getNormal(),
Blob.BLOB_CIRCLE);
connectorA.setTailEnd(blob);
Arrowhead arrow = new Arrowhead(b.getX(), b.getY(), b.getNormal());
connectorA.setHeadEnd(arrow);
// Add it to the layer
layer.add(connectorA);
// Create the second connector
Site c = figureA.getS();
Site d = figureB.getW();
connectorB = new ManhattanConnector(c, d);
// Add the diamond
Blob diamond = new Blob(c.getX(), c.getY(), c.getNormal(),
Blob.BLOB_DIAMOND);
diamond.setSizeUnit(6.0);
diamond.setFilled(false);
connectorB.setTailEnd(diamond);
// Add it to the layer
layer.add(connectorB);
}