- sequence diagram,
- use case diagram,
- class diagram,
- activity diagram,
- component diagram,
- state diagram
- object diagram
Diagrams are defined using asimple and intuitive language.
They can be generated in PNG or SVG format.It is also possible to generate ASCII artdiagrams (only for sequence diagrams).
Each diagram description begins with the keyword @startumlthen ends with the keyword @enduml.
You can refer to thePlantUML Language Reference Guide.
Thoses descriptions may be included into :
- Text files (.txt),
- Html files (.html or .htm),
- Java sources files (.java),C/C++ source files (.c, .h, .cpp)
- LaTeX sources files (.tex),
- APT files(.apt)
- Word files(.doc)
- URL
Of course, if you use Html, LaTeX, APT or Java/C/C++ files, you should putdiagram descriptions into comments.
File naming
By default, .png file have the same name as thesource file used to generated them (only the extension changes).
An automatic sequence is added if a source file contains severaloccurences of @startuml.
It is possible to use a different file name for the .pngfile. For example:
@startuml image.png
Alice->Bob: Authentication Request
Bob-->Alice: Authentication Response
@enduml
In this example, the .png file will be named image.png.
(Please note that you should not use this feature with Wordintegration.)
Running
To launch diagram's images generation, you should have Java 1.5installed on your machine, and optionally Graphvizsoftware which are used for all diagrams but sequence diagrams .You can then download the jar file plantuml.jar,and save it on your local disk.
You can run it using several ways:
Use the Eclipse Plugin
Use it with NetBeans
Use the online servlet,(Explanation here)
Reverse Engineering with PlantUML Dependency
Call it from Javascript
Call it from PHP
Call it from Java
Call it from Groovy
Run it directly from Word
Runit directly from Open Office
Write an ANT task
Use the Maven2 plugin
Run it from Emacs
Run it from Sublime Text Editor
Run it from VIM
Double-click on the .jar to run it
Use a command line
PlantUML Editor: Afast and simple UML editor using WPF Dotnet
Use EasyUmlEditor
Use the online demonstration with the JavaApplet
Useit with Almost Plain Text (APT) files
Use it with LaTeX
Generate diagrams with Javadoc
Use it with Doxygen
Integrateit with MediaWiki
Integrateit with Redmine
Integrateit with Confluence
Integrate itwith Trac
Integrate itwith DokuWiki
Integrate itwith Sphinx
Generate PlantUML diagramsfrom SqlALchemy models
Integrate itwith XWiki
Integrateit with docutils
Useit with AsciiDoc
Generate UML description from Java sourcesusing a doclet
Install your own servlet
Use it with textcube
PlantUML:快速绘制多种图表的工具
PlantUML 是一款允许用户迅速编写并生成序列图、用例图、类图、活动图、组件图、状态图和对象图等图表的工具。它使用简单直观的语言定义图表,并支持在多种文件格式(如 PNG、SVG 和 ASCIIart)中生成。通过在源文件中插入特定关键字,可以自动生成相应的图表,并且提供了多种运行方式,包括 Eclipse 插件、NetBeans、在线 servlet 等。
604

被折叠的 条评论
为什么被折叠?



