Hi Janice,
i currently have done multiple SVGDocument each in its own JSVGCanvas. also, it there any way that i can capture events on the bottom layer? even the batik Zoom function only zooms in the top layer.
 
You would have to create a mechanism to propagate events from the top layer to the bottom layers. I have approached this two ways: 1) create a glass pane that will capture events and redirect them to the proper layer (or all of them) and 2) override setPaintingTransform() and setRenderingTransform() in the top canvas so that it calls the same methods in the bottom ones. Technique 2, which was suggeted by Thomas, is much simpler and will get you the behavior you want.
 
Hope this helps,
 
André
 

Reply via email to