能画uml的工具很多,plantuml 是我迄今为止见过最棒的。
它有自己的一套图形描述语法,由此带来的好处是,可以结合git做版本管理,至于想生成图片,眨眼的事
环境搭建:
1 下载atom,官网 [url]https://atom.io/ [/url]
2 下载plantuml.jar 官网 [url]http://plantuml.com/download.html[/url],它依赖java环境,这个大家都有
3 atom 安装插件:
- language-plantuml 其支持plantuml的语法高亮
- plantuml-preview 其支持plantuml的图形预览,可以生成svg,png,方便copy。该插件安装完毕后,在其配置页,需要指定plantuml.jar的文件路径
4 Graphviz(可选) 一个图形库
brew install graphviz
安装完成后,可执行路径在 /usr/local/bin/dot (在 plantuml-preview配置页可配,作用不详,不做配置也一切正常)
效果如下:
[img]http://dl2.iteye.com/upload/attachment/0118/9582/3418ce63-9a0c-3f54-b3c7-076e82e897b5.png[/img]
它有自己的一套图形描述语法,由此带来的好处是,可以结合git做版本管理,至于想生成图片,眨眼的事
环境搭建:
1 下载atom,官网 [url]https://atom.io/ [/url]
2 下载plantuml.jar 官网 [url]http://plantuml.com/download.html[/url],它依赖java环境,这个大家都有
3 atom 安装插件:
- language-plantuml 其支持plantuml的语法高亮
- plantuml-preview 其支持plantuml的图形预览,可以生成svg,png,方便copy。该插件安装完毕后,在其配置页,需要指定plantuml.jar的文件路径
4 Graphviz(可选) 一个图形库
brew install graphviz
安装完成后,可执行路径在 /usr/local/bin/dot (在 plantuml-preview配置页可配,作用不详,不做配置也一切正常)
效果如下:
[img]http://dl2.iteye.com/upload/attachment/0118/9582/3418ce63-9a0c-3f54-b3c7-076e82e897b5.png[/img]