java - 使用 doxygen 从源代码创建一个大型 UML 图

标签 java uml doxygen

我将 Doxygen 与 Dot 结合使用,以创建 Java 项目的 UML 图。 当我运行 Doxygen 时,它会创建很多特定类的 .png uml 文件,但不是一个显示所有类 + 成员函数等的“大”UML 图表。

是否可以生成这个?如果是,怎么做?

最佳答案

要为所有类创建一张大图,您需要在 Doxyfile 中启用GRAPHICAL_HIERARCHYHAVE_DOT

# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is 
# available from the path. This tool is part of Graphviz, a graph visualization 
# toolkit from AT&T and Lucent Bell Labs. The other options in this section 
# have no effect if this option is set to NO (the default)

HAVE_DOT               = YES

# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen 
# will generate a graphical hierarchy of all classes instead of a textual one.

GRAPHICAL_HIERARCHY    = YES

另外还有

# If the UML_LOOK tag is set to YES doxygen will generate inheritance and 
# collaboration diagrams in a style similar to the OMG's Unified Modeling 
# Language.

UML_LOOK               = YES

关于java - 使用 doxygen 从源代码创建一个大型 UML 图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27013252/

相关文章:

java - 序列图逆向工程

svn - 如何使用新的 doxygen 输出最小化修订之间的更改数量?

java - 带有 --release 8 的 jdeprscan 警告

c++ - Visual Studio 2012 可以将 C++ 代码反向工程为 UML 图吗?

c++ - 带有 GNU/Linux 代码生成工具的 UML

c++ - 具有 C++ 代码生成和 doxygen 支持的免费 UML 工具

doxygen - 指定 doxygen 自动生成类的标题

java - 在Java中模拟函数模板

java - Java中的GPS计算

java - 将单元测试嵌套在它测试的类中而不是另一个(外部)类中的目的是什么?