Hi, I don't find something like svgElement.setOpacity("0.3"); is there anot

Hi, I don’t find something like svgElement.setOpacity(“0.3”);
is there another easy way to set the opacity?

Read again the code samples. Found there instructions “Extend Element Attributes” that perfectly helped.

public class MySvgPath extends Path {

	public MySvgPath(String id, String path) {
		super(id, path);
		setOpacity("0.1");
	}

	public void setOpacity(String opacity) {
		setAttribute("opacity", opacity);
	}
}

However, I still think that some setAttribute would better be located in the SvgElement.