I am writing a program in Java. In the end I need a program which will generate vector graphics. This program will need to save the graphics in SVG format as well as a rasterized version.
These graphics need to be viewed in a standalone viewer which can pan and zoom. This viewer will need to update automatically when the program is re-ran. I am hoping that Batik can help me out with a lot of this but I'm having some trouble making decisions. What would be the best way for my program to generate these graphics? Should I use a StringBuilder and keep adding my <rect />'s or should I use a Document class? On the viewer side, is it possible to get panning and zooming working with a JSVGCanvas? I haven't seen any examples of this. And as for the viewer updating...Should the program that is generating the graphics notify the viewer that the file has been updated through RMI? Should the viewer periodically check the filesystem? Having an RMI client/server setup seems like overkill and checking the filesystem every second seems like a bad idea too. I've seen text editors that know when a file has been modified externally. Any ideas how they work? Thanks for the help, ~Eric --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
