O'Reilly logo

Java™ Drawing with Apache Batik: A Tutorial by Alexander Kolesnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the DOM API

An important step in creating a new program is to give it a name. What should it be? Since we are going to conjure shapes out of thin air with this application, let’s call it SVG Conjurer.

Although externally SVG Conjurer resembles our previous applications, in the background it will be working in a completely different way. Previously, to create an SVG content, you used the SVG Generator. Now that you have mastered the secrets of the DOM API, you don’t need the SVG Generator anymore, as you can work directly with an SVG document and build and manipulate it as you wish. This is exactly what you are going to do in your new application.

As before, the majority of the code deals with the Swing part of the application, and most ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required