Java based inline CGM reader/renderer:



UPDATE: This project has been continued at http://www.bdaum.de/howto.htm

note: This project is currently down, if you want to try it yourselves or if you want to hack on it. Here is the sources and the .class files. javacgm.tar.gz or javacgm.zip. Note that i don't promise that this will work on all cgm files, all features are not implemented. If you do any work on the sources or just use the applet on you page, please drop me an email. Lat

I'm currently developing a cgm viewer written in java.

The program is still VERY early in development. I had to remove the 'drawing-while-loading' function, it was to unstable. This makes the program look slower. I have to change this in the future, just not got enought time.

Also missing from this version is a zoom function and a 'bring-up-window' function that makes it possible to change the size of the picture.

Not all primitives are supported yet, and some things are handled incorrectly. Especially line-widths and scale modes. I don't have any real documentation for the file format, so much is just guesswork.

It can only read binary cgm's, but i wouldn't want to publish a text cgm on the net, they are mush bigger. If you have a text cgm you can convert it to binary using ralcgm found somewhere on the net.

If you want to publish cgm pictures on the net you should also know about the figleaf plug-in for netscape. It can show cgm's too. But all your users has to download and install it (and it works with nut$crape only). With my program all you have to do is use a java-enabled browser.

If you are interested in using this program or if you happens to have some documentation of the CGM format, please don't hesitate to contact me.

Check out some more examples. But yoy got to have a lot of patience.


Please contact me: Alexander Larsson (alla@lysator.liu.se)