微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

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

有可能产生这个吗?如果是的话,怎么办?

解决方法:

要为所有类提供一张大图,您需要在Doxyfile中启用enableGRAPHICAL_HIERARCHY和HAVE_DOTS.

# 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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐