Don wrote:
> So I would like use Batik as an
applet to download svg files to java enabled
> web browsers and view them
with interactive scaling and zooming
embedded
> on a web page.
I’ve seen mention of java applets
using the Batik viewer canvas, but I haven’t
> been able to find any tutorials
or sample code to do that. Is there a file or a
web
> site I should look at, or
does it require a bit of Java programming to hook Batik
up
> in an applet, supporting
simple pan/zoom/url navigation?
Implementing an applet to display
SVG is relatively simple: use the JSVGCanvas component.
The first problem you are going to
quickly discover is that Batik is dependent on Java 1.3 (and thus requires a JRE
plug-in on the client side). The second problem is the large amount of
dependencies for JSVGCanvas, requiring you to include practically the whole
batik/lib directory in the download.
None of this invalidates your
decision though, using a Java is still infinitely preferrable to ActiveX (a la
Adobe SVG Viewer). However, if there is no issue with installation Java 1.3+ why
not look at Java Web Start ...
|