Hi,
The screenshot:<nabble_a="whiteareasScreenShot.JPG">whitearea
sScreenShot.JPG
This line it's called only once , after create a new
document: svgCanvas.setSVGDocument((SVGDocument)
basedocument);
this line it's called only once, when I add to the empty
document the big svg file:
In this case ele is the element of the big svg file.
root.appendChild(basedocument.importNode(ele, true));
basedocument.getDocumentElement().setAttribute("viewBox",
"0 0 900 520");
This Code is called each time i add a small svg: ele is its Element
That means each time i clicked over the jsvgcanvas
Runnable r = new Runnable() {
public void run() {
Element root =
basedocument.getDocumentElement();
Element ele =
newGraphElement.getRootelement();
Element elementToinsert = (Element)
newGraphElement.getRootelement().getElementsByTagName("g"
).item(0);
elementToinsert.setAttribute("transform",
"translate(" newGraphElement.getPosX() ","
newGraphElement.getPosY() ")");
root.appendChild(basedocument.importNode(ele, true));
/*Where root is the element that
represents the document that contains the small svg and
the big one*/
}
};
UpdateManager um = null;
while (um == null) um =
this.svgCanvas.getUpdateManager();
um.getUpdateRunnableQueue().invokeLater(r);
So, I add an icon appending it to the root in the update
manager thread.
And what exception you think i should get?
How I said before , this things appear after many time manipulating the svg
file.
thanks for your help.
--
View this message in context:
http://www.nabble.com/Some-white-areas-appear--after-many-zoom-in%2C-zoom-out-and-pan-actions-tp19460378p19536223.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]