Hi,

for sure there is a simple solution (well, I already searched for days).

When using built-in pan and zoom, areas outside the initial viewbox are not shown. I added an event listener to the svg root ("SVGScroll") to update the viewbox. Setting the RenderingTransform to identity and keeping track of the current position it works somehow (but only inside a JScrollPane, else the position is "sometimes" different) but with a lot of flickering. The viewbox is updated in the UpdateManager thread.

How to access scrolling properly with batik, or do I have to implement my own Interactor anyway like in http://wiki.apache.org/xmlgraphics-batik/CanvasInteractors? I thought this viewbox-pan issue would be so easy; built-in solved already in batik; but I spent too much time so I ask now.

Another question, maybe there is another good solution to automatically adjust the viewbox to the bounds of the SVG's contents without changing the shown area (or I have to use SVGCanvas.getGraphicsNode().getGeometryBounds() and adjust the rendering transform manually back all the time?).

There are to develop some basic distributed whiteboard prototypes.

Thanks a lot!
M. Jurke


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to