// SVGButton button = new SVGButton(.1, i + 1.1, 3.8, .7, .2);
// button.setTitle("Active style", "darkgray");
// layer.appendChild(button.render(svgp));
}
else {
SVGButton button = new SVGButton(.1, i + 1.1, 3.8, .7, .2);
button.setTitle("Set style", "black");
Element elem = button.render(svgp);
// Attach listener
EventTarget etr = (EventTarget) elem;
etr.addEventListener(SVGConstants.SVG_CLICK_EVENT_TYPE, new EventListener() {
@Override
public void handleEvent(Event evt) {