Hi Cameron,
> Yes.
>
> Element text = doc.createElementNS(svgNS,
"text");
> Text value =
doc.createTextNode("100.100.10.10");
> text.appendChild(value);
> text.setAttributeNS(null,
"text-decoration", "none");
> text.setAttributeNS(null, "x",
"150");
> text.setAttributeNS(null, "y",
"150");
> text.setAttributeNS(null, "font-family",
"Arial");
> text.setAttributeNS(null, "font-size",
"12");
> rootElement.appendChild(text);
> var bbox = text.getBBox();
After added the 'text' in the root only, you can able to
get SVGRect. But is
it possible to get SVGRect/width before adding it to Root?
Thanks,
Selva
------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribe xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help xmlgraphics.apache.org
|