xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Ávila <asan...@nextech.com.br>
Subject Re: Multiple SVGDocument
Date Thu, 04 May 2006 12:45:54 GMT
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,


View raw message