使用UMLGraph生成序列图

时间:2011-03-29 08:22:46

标签: java uml sequence-diagram umlgraph

我正在使用UMLGraph生成序列图。我使用pic2plot程序生成svg图像有问题。它剪辑图像,图像部分不显示。 FAQ

中也记录了此问题
How can I prevent clipped SVG images in sequence diagrams?

This appears to be a limitation of pic2plot. You can work around it, by increasing the width and height values appearing in the SVG XML file that pic2plot generates. 

但是,我已尝试但未能更改svg图像中的宽度和高度。我尝试修改svg中的width="8in" height="8in" viewBox="0 0 1 1" preserveAspectRatio="none" 但没有成功。

请帮忙。

2 个答案:

答案 0 :(得分:0)

我不知道如何使用UMLGraph解决这个特定问题,但如果您愿意使用其他类似的文本建模工具,请查看here超过10个可用工具

答案 1 :(得分:0)

编辑生成的SVG的第一行似乎有帮助......

保持viewBox中的第一个参数固定,我将视图框中第三个参数和第一个参数之间的宽度和增量从1.5开始缩放

<svg baseProfile="full" height="19.67in" id="body" preserveAspectRatio="none" version="1.1" viewBox="-0.3800 -0.7325 0.6900 2.4588" width="5.52in" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink">

<svg baseProfile="full" height="19.67in" id="body" preserveAspectRatio="none" version="1.1" viewBox="-0.3800 -0.7325 1.035 2.4588" width="8.28in" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink">

对我来说没有更多的剪辑,看起来没问题。您的里程可能会有所不同。