PlantUML 1.2019.2 Справочное руководство по языку
1.76 MB
159 页
0 评论
语言 | 格式 | 评分 |
---|---|---|
俄语 | .pdf | 3 |
摘要 | ||
The document provides a comprehensive guide to using PlantUML version 1.2019.2. It covers various commands and features such as comments, footers, headers, zooming, Unicode support, Creole syntax for text styling, mathematical formulas using AsciiMath and JLaTeXMath, and message grouping in sequence diagrams. The guide also explains how to create different types of UML diagrams, including sequence, class, activity, component, state, object, deployment, and synchronization diagrams. Additionally, it supports non-UML diagrams like wireframes, Archimate, SDL, Ditaa, Gantt, and mathematical notations. | ||
AI总结 | ||
### 总结:《PlantUML 1.2019.2 Справочное руководство по языку》
PlantUML 是一个开源项目,用于快速创建多种类型的 UML 和非 UML 图表,支持以下功能:
#### 1. **常用命令**
- **注释**:以单引号 `'` 开头的内容为注释,支持多行注释使用 `/*` 开始和 `*/` 结束。
- **页眉和页脚**:通过 `header` 和 `footer` 命令添加页眉或页脚,支持居中、左对齐或右对齐,并可嵌入 HTML。
- **缩放**:使用 `scale` 命令调整图像大小,支持数字、分数、宽度、高度或组合方式(如 `scale 200*100` 或 `scale max 300*200`)。
#### 2. **Unicode 支持**
- PlantUML 支持多种语言的字符,包括非拉丁字符(如中文、希腊字母等)。
#### 3. **Creole 语法**
- 集成了 Creole 引擎,支持标准化的文本样式定义,包括加粗(`**`)、斜体(`//`)、等宽字体(`""`)、划线(`--`)和下划线(`__`)。同时保留了与 HTML 的兼容性。
#### 4. **列表支持**
- 支持无序列表(`*`)、有序列表(`#`)和子项(如 `** Sub item`)。
#### 5. **数学公式**
- 支持使用 AsciiMath 和 LaTeX 数学公式,需额外下载并配置 JLaTeXMath 库(包括 `batik-all-1.7.jar`、`jlatexmath-minimal-1.0.3.jar`、`jlm_cyrillic.jar` 和 `jlm_greek.jar`)。
#### 6. **图表类型**
- 支持以下 UML 图表:
- **类图**:定义类及其关系。
- **活动图**:描述流程和行为。
- **组件图**:展示系统组件及其交互。
- **状态图**:描述对象生命周期。
- **对象图**:展示对象实例及其关系。
- **部署图**:展示系统部署结构。
- **同步图**:描述并发流程。
- 支持其他非 UML 图表:
- **Wireframe 图形界面**:用于原型设计。
- **Archimate 图表**:用于架构设计。
- **SDL 图表**:描述系统行为。
- **Ditaa 图表**:基于 ASCII 艺术的图表。
- **Gantt 图表**:展示项目进度。
#### 7. **扩展功能**
- 支持分组和嵌套组(使用 `group` 和 `end`)。
- 支持图例(`legend`)和自定义标题。
#### 8. **数学公式示例**
- 使用 AsciiMath:
```plantuml
@startuml
Alice -> Bob : message 5
Alice -> Bob : message 6
@enduml
```
- 使用 LaTeX:
```plantuml
@startlatex
\sum_{i=0}^{n-1} (a_i + b_i^2)
@endlatex
```
#### 9. **配置**
- 需要将 JLaTeXMath 库文件(`batik-all-1.7.jar`、`jlatexmath-minimal-1.0.3.jar`、`jlm_cyrillic.jar` 和 `jlm_greek.jar`)与 PlantUML 程序文件放在同一目录下。
总结:PlantUML 提供了强大且灵活的功能,支持多种图表类型和文本样式,适用于软件开发、架构设计和文档编写等多种场景。 |
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
下载文档到本地,方便使用
- 可预览页数已用完,剩余
147 页请下载阅读 -
文档评分