石头

我的备忘录

PlantUML

PlantUMLis a component that allows to quickly write :

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 :

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:



阅读更多
个人分类: uml
相关热词: plantuml
上一篇Automated Drawing of UML Diagrams
下一篇ckwnc is a free tool for creating UML sequence diagrams
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭