graphic.add(new PaintedPath(line2));
// Create the icon
BasicRectangle background = new BasicRectangle(0, 0, 100, 100,
Color.green.brighter().brighter());
IconFigure _icon1 = new IconFigure(background, graphic);
layer.add(_icon1);
_icon1.setInteractor(defaultInteractor);
// Add its terminals
createTerminals(_icon1);
_icon1.translate(100, 100);
}