>>>>> "FJ" == Frank Jakop <[EMAIL PROTECTED]> writes:

FJ> Hi there, I just started using Batik. I need to display SVGs on a
FJ> JPanel. If I use JSVGCanvas, there is no problem, but I think it
FJ> is only able to display a single SVG-File. How can I display
FJ> multiple SVGs on the screen?

    It's not clear what you are looking for, I can think of three
ways to interpret the question:

    1) You want to display multiple SVG documents in seperate windows
or seperate areas of a single window all at the same time.  This can
be done by simply creating multiple JSVGCanvas objects.

    2) You want to display multiple SVG documents in squence, this
can be done by calling setURI on the JSVGCanvas.

    3) You want to display multiple SVG documents 'on top' of each
other.  This is uncommon but is also possible (although with a bit
more work).  My suggestion is to create a dummy document that uses the
'image' element to reference the various layers to be displayed.  You
can then set this document as the document for the JSVGCanvas to
display.  You can also use this technique to hide/show layers (by
adding/removing image elements or adjusting the visiblity property).

FJ>  (btw, is there a german-speaking list or forum?)

     Not that I'm aware of...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to