Hi Anthony

Your question comes at just the time that there have been other
discussions concerning SVG.

See this:
http://argouml.markmail.org/search/?q=svg&x=0&y=0#query:svg+page:1+mid:xvdvqvohxtf5ikzy+state:results

At the moment SVG output is done by the class in the GEF
http://gef.tigris.org/ library.

The move to batik may come to nothing though if this issue in GEF is
resolved and we can improve some of the Java2d code in GEF.
http://gef.tigris.org/issues/show_bug.cgi?id=252

At the moment all graphics output selection is handled through the
ArgoUML class SaveGraphicsManager. That delegates to different
handlers for different formats.

For SVG it currently delegates to the
org.tigris.gef.persistence.SVGWriter class in GEF. This class is an
extension of java.awt.Graphics and it is passed through the paint
method of much of ArgoUML and GEF Java2d code. The list of what
classes handle what particular output format is fixed in ArgoUML.

Having that list hardcoded is less flexible than we'd like. ArgoUML is
currently being rearchitected to a more modular/pluggable architecture
and one issue raised is to modify SaveGraphicsManager so that anyone
can develop their own alternative graphics output. Moire detail needs
to be added to the issue at
http://argouml.tigris.org/issues/show_bug.cgi?id=5635

Regards

Bob.


2009/1/22 Anthony Rogers <[email protected]>:
> I recently exported a pretty simple diagram for one of my personal side
> projects in order to open the image in other programs and fine-tune its
> appearance. When I examined the XML, however, I discovered that a pretty
> straightforward Class Diagram was a nightmare of chaotic SVG.
>
> Couple of questions I have in response to this:
>
> Before exporting a diagram, is ArgoUML managing the diagram's images as SVG?
> Or, is it stored in some other format and then transformed into SVG at the
> time of export?
> I checked the Cookbook §5.3. Diagrams in order to find out how ArgoUML is
> generating its SVG code, but I saw nothing about SVG in this part of the
> documentation. I looked a few other places in the Cookbook as well with no
> luck. Is the component that generates SVG documented? If not, could someone
> point me to the code that is responsible for it? (A brief overview of the
> code would be a welcome addition, but I'd be happy just to know where the
> SVG generation is happening if you don't care to explain things.)
>
> Thanks!
>
> —Zearin

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=1043448

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to