PlantUML 1.2020.23 Справочное руководство по языку
3.12 MB
306 页
0 评论
语言 | 格式 | 评分 |
---|---|---|
俄语 | .pdf | 3 |
摘要 | ||
The document provides a comprehensive guide to PlantUML version 1.2020.23, detailing its features and functionalities. It covers various diagram types including UML diagrams, Gantt diagrams, timing diagrams, sequence diagrams, and more. The guide explains how to use PlantUML commands to create these diagrams, customize colors, set completion statuses, and integrate mathematical formulas using AsciiMath or JLaTeXMath notation. Additionally, it discusses the use of skin parameters for styling diagrams and provides examples for different diagram types. | ||
AI总结 | ||
### 总结
《PlantUML 1.2020.23 Справочное руководство по языку》提供了对PlantUML语言的全面指南,涵盖了多种图表类型和功能。以下是核心内容的总结:
---
#### 1. **Gantt 图**
- **任务依赖关系**:支持在任务之间添加约束,例如任务的开始时间可以依赖于其他任务的结束时间。
- **短名称**:可以通过 `as` 关键字为任务定义短名称,简化代码。
- **颜色自定义**:使用 `is colored in` 命令自定义任务的颜色。
- **完成状态**:支持设置任务的完成状态。
示例:
```plantuml
@gantt
[Prototype design] lasts 15 days
[Test prototype] lasts 10 days
[Test prototype] starts at [Prototype design]'s end
@endgantt
```
---
#### 2. **时序图**
- 支持通过 `@startuml` 和 `@enduml` 创建时序图。
- 示例展示了如何定义时钟信号、二进制信号和数据总线的状态变化。
---
#### 3. **数学公式**
- **AsciiMath 和 JLaTeXMath**:支持使用 AsciiMath 和 JLaTeXMath 创建数学公式。
- **依赖管理**:在 Java 11 中,建议使用 GraalVM 替代 Nashorn 引擎以避免弃用警告。
- 示例:
```plantuml
@startlatex
\sum_{i=0}^{n-1} (a_i + b_i^2)
@endlatex
```
---
#### 4. **支持的图表类型**
PlantUML 支持以下类型的图表:
- **UML 图表**:包括类图、序列图、活动图、组件图、状态图、对象图、部署图和协作图。
- **非 UML 图表**:包括 Gantt 图、思维导图、工作分解结构图、SDL 图、Ditaa 图、数学公式图等。
---
#### 5. **样式和自定义**
- **Skinparam**:支持通过 `skinparam` 命令自定义图表的样式,例如颜色、字体大小和背景颜色。
- 示例:
```plantuml
@startuml
skinparam class { BackgroundColor PaleGreen ArrowColor SeaGreen }
Class01 "1" *-- "many" Class02 : contains
@enduml
```
---
#### 6. **其他功能**
- **附录**:文档提供了多种图表的示例,包括如何使用样式和命令进行自定义。
- **工作分解结构 (WBS)**:支持通过 `@startwbs` 创建 WBS 图。
- **思维导图**:支持通过 `@startmindmap` 创建思维导图。
---
### 核心观点
PlantUML 是一个功能强大的开源工具,支持多种图表类型和自定义功能,适用于软件开发、项目管理、数学公式绘制等多种场景。其简洁的语言和灵活的自定义选项使其成为快速创建图表的理想选择。 |
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
下载文档到本地,方便使用
- 可预览页数已用完,剩余
294 页请下载阅读 -
文档评分