Figure bg = new BasicRectangle(100.0, 100.0, 100.0, 100.0, Color.blue);
tc.setBackgroundFigure(bg);
layer.add(tc);
tc.setInteractor(defaultInteractor);
addPorts(tc);
tc.translate(200.0, 0);
}
/** Utility function to add the "ports" to the composite figure.
*/
public void addPorts(CompositeFigure tc) {