pdf文档 PlantUML 1.2021.2 Guía de Referencia del Lenguaje

4.12 MB 389 页 0 评论
语言 格式 评分
西班牙语
.pdf
3
摘要
文档介绍了PlantUML 1.2021.2版本的功能,包括绘制多种UML图和非UML图,如类图、序列图、部署图、JSON、YAML数据图等。文档还详细说明了如何使用特定语法和皮肤参数来自定义图表的外观,并介绍了标准库的使用,如C4模型和Cloud Insight图标库,以增强图表的专业性和可视化效果。
AI总结
### Summary of《PlantUML 1.2021.2 Guía de Referencia del Lenguaje》 **Overview of PlantUML** PlantUML is an open-source tool designed to quickly create various types of diagrams using a simple and intuitive language. It supports both UML diagrams and non-UML diagrams, making it a versatile tool for visualizing system designs, data structures, and more. --- **Supported Diagram Types** PlantUML supports the following UML diagrams: - Sequence diagrams - Use case diagrams - Class diagrams - Object diagrams - Activity diagrams - Component diagrams - Deployment diagrams - State diagrams - Timing diagrams In addition to UML diagrams, PlantUML supports the following non-UML diagrams: - JSON data visualization - YAML data visualization - Network diagrams (nwdiag) - Wireframe graphical interfaces - Archimate diagrams - SDL diagrams - Ditaa diagrams - Gantt charts - MindMap diagrams - Work Breakdown Structure diagrams - Mathematical notations (using AsciiMath or JLaTeXMath) - Entity-Relationship diagrams --- **Defining Diagrams** Diagrams are defined using a simple, intuitive language. The tool allows for nested elements and inline styling, enabling precise customization of diagram elements. --- **Inline Styling and Nested Elements** PlantUML supports inline styling for elements such as frames, nodes, packages, and more. This allows users to customize the appearance of their diagrams. For example: - `frame frame #aliceblue;line:blue;line.dotted;text:blue` - `package package { ... }` Nested elements can be used to create hierarchical structures, such as nested packages or components. --- **YAML and JSON Data Visualization** PlantUML can visualize YAML and JSON data directly. To use this feature: - YAML diagrams must start with `@startyaml` and end with `@endyaml`. - JSON diagrams must start with `@startjson` and end with `@endjson`. Example YAML visualization: ```yaml fruit: Apple size: Large color: Red ``` This can be visualized as a structured diagram in PlantUML. --- **Skin Parameters and Customization** PlantUML allows for customization of diagram elements using skin parameters. For example: ```plantuml skinparam componentStyle uml2 skinparam BackgroundColor transparent skinparam component { backgroundColor DarkKhaki } ``` --- **C4 Model and Standard Library** PlantUML includes a standard library (`stdlib`) that provides additional functionality, such as pre-defined icons and templates. The C4 model library is particularly useful for visualizing software architectures, including components, containers, and systems. Example C4 model usage: ```plantuml !include Person(personAlias, "Label", "Optional Description") Container(containerAlias, "Label", "Technology", "Optional Description") System(systemAlias, "Label", "Optional Description") Rel(personAlias, containerAlias, "Label", "Optional Technology") ``` --- **Cloud Insight and Icon Sprites** PlantUML supports the use of Cloudinsight sprites for visualizing popular technologies. These sprites can be included using commands like `!include ` and are particularly useful for creating diagrams that represent real-world systems. Example Cloudinsight usage: ```plantuml !include !include title Cloudinsight sprites example skinparam monochrome true rectangle "<$tomcat>\nwebapp" as webapp queue "<$kafka>" as kafka webapp -> kafka ``` --- **Packages and Nested Elements** PlantUML allows the creation of nested packages and elements, enabling users to represent complex hierarchical structures. For example: ```plantuml package package { node node { hexagon hexagon { frame frame { folder folder { file file { database database { component component { cloud cloud { card card { artifact artifact { } } } } } } } } } } } ``` --- **Conclusion** PlantUML is a powerful and flexible tool for creating a wide variety of diagrams. Its support for UML, non-UML diagrams, and custom styling makes it a valuable resource for developers, architects, and anyone looking to visualize complex systems or data structures.
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
下载文档到本地,方便使用
- 可预览页数已用完,剩余 377 页请下载阅读 -
文档评分
请文明评论,理性发言.