Hello,
I've got something like the following:
private SVGOMSVGElement svgElement;
.
.
.
svgElement = (SVGOMSVGElement) canvas.getSVGDocument().getRootElement();
.
.
.
updateManager.getUpdateRunnableQueue().invokeLater(
new Runnable() {
public void run() {
svgElement.setAttributeNS(null, "viewBox", "# # # #");
}
}
);The svgElement assignment takes place within the gvtBuildCompleted method of a GVTTreeBuilderListener, and the # symbols in the setAttributeNS call are actual values. I end up with a RuntimeException and after checking the SVGOMSVGElement source I found:
public SVGAnimatedRect getViewBox() {
throw new RuntimeException(" !!! TODO: getViewBox()");
}Is there any other way to dynamically change the size of the viewBox attribute? I'm also looking to change the height and width attributes at the same time. Basically what I'm trying to accomplish is given a large SVG document view only a specific area within the document so I'm trying to set the width, height, and viewBox attributes accordingly.
Thanks, Steve
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
