Java-自己生成类图
我正在开发一个 Java 小型项目,如下所述:
输入:有向图的对象列表。 (具有不同类型边的节点:继承、内部类、友元类等) 输出:类图,尽可能平面化。
我的问题是: 我想要一些第三方软件来为我做这件事,或者至少有一个选择节点和边的算法,以保持我的图形尽可能平面。
编辑: 我发现我可能没有写清楚我想要的内容...我不想基于 Java 项目及其文件生成类图,但我正在解析 C++ 文件并从上面输入中描述的列表中获取。然后我想调用该列表上的一些函数并获取我的图表。我试图使用 JGraph 或 JGraphT 但不幸的是我没有找到任何适合我的要求的图论功能。
问候, 丹尼尔
I am working on a small project in Java described below:
Input: List of objects for directed graph. ( Nodes with different kind of edges: inheritance, inner-class, friend classes, etc. )
Output: class diagram, as planar as possible.
My problem is:
I would like to have some 3rd party software that will do it for me or at least have an algorithm of selecting nodes and edges to keep my graph as planar as possible.
EDIT:
I see I may not have written clearly what I want... I don't want to generate class diagram based on Java project with its files, but I am parsing C++ file and get from there list described in above input. Then I want to call some function on that list and get my diagram. I was trying to use JGraph or JGraphT but I unfortunately didn't find any graph-theory functionality which suit my requirements.
Regards,
Daniel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用 Eclipse IDE,则可以使用 Soyatec 的 eUML2 免费插件。请查看此处。
If you use Eclipse IDE you can use Soyatec's eUML2 free plugin. Have a look here.