170171172173174175176177178179180
layer.add(_icon1); _icon1.setInteractor(defaultInteractor); // Add its terminals createTerminals(_icon1); _icon1.translate(100, 100); } /** Create an icon. The icon's graphic is created * by using GraphicsParse. */
200201202203204205206207208209210
Color.green); IconFigure icon = new IconFigure(background, graphic); // Add its terminals createTerminals(icon); icon.translate(100, 100); return icon; } public String toString() { return "Icon figure";