I have managed to create an SVG file using JGo however I still have several issues to resolve.
The code I’m using is very simple:
FileOutputStream F = new FileOutputStream((“C:\SVGFile.svg”);
SVGGoView svgView = new SVGGoView();
svgView.generateSVG( F );
- During the execution of the last line I get the following error:
XOR Mode is not supported by Graphics2D SVG Generator
Can someone throw some light on what might be causing this?
An SVG file is created by my code however it is corrupted - Paintshop can’t open it at all and Visio opens it but generates loads of errors about unsupported attribute types and unsupported attribute values.
- Are these Visio errors in normal? How can I avoid them?
The image imports into Visio quite well except for a couple of problems:
- The diagram layout is quite different from the layout as it appears in the Java applet. The boxes are displayed left to right in the applet but are laid out in a step fashion in Visio i.e. each box is positioned down and to the right of the previous box meaning that all the connectors now cross over the boxes.
- When the diagram is in Visio, none of the elements seem to be grouped. So for an area, the border, background and nodes are all individual elements and can be moved independently of each other. When I click on an area, Visio appears to highlight the whole bounded area, but when I drag the highlighted area I am in fact only moving the shaded background of the area. If I then click on the original area again, it highlights but when I move it I find that I am only moving the border of the area. Is this normal behaviour or do I have to do something special when creating the diagram.
We’re getting close to the end of our evaluation and just need to get these last few issues nailed.