画程序流程图

本文详细介绍了如何在VisualStudioCode(VSCODE)中利用plantuml插件创建和编辑在线程序流程图、类图、时序图、用例图和状态图等UML图,包括语法、安装步骤和配置方法,以及类图关系的注解和包、结构体的示例。
摘要由CSDN通过智能技术生成

一。在线程序流程图。类图和时序图

Integrations | Mermaid

二。VSCODE画UML图和各种种

1.下载plantuml.jarReleases · plantuml/plantuml · GitHubGenerate diagrams from textual description. Contribute to plantuml/plantuml development by creating an account on GitHub.icon-default.png?t=N7T8https://github.com/plantuml/plantuml/releases

2.安装plantuml插件

3.安装markdownpreview插件

4.配置plantuml.jar插件路径

5.plantUML语法

时序图的语法和功能

用例图语法和功能

类图的语法和功能

状态图的语法和功能类图:Class Diagram syntax and features
流程图:New Activity Diagram Beta syntax and features
时序图:Sequence Diagram syntax and features
用例图:Use case Diagram syntax and features
状态图:State Diagram syntax and features
组件图:Component Diagram syntax and features

类图关系以下几种:

@startuml
ClassA <-- ClassB:关联
ClassA <.. ClassB : 依赖
ClassA o-- ClassB:聚集
ClassA <|-- ClassB:泛化
ClassA <|.. ClassB:实现
@enduml
 

注解

class MainActivity

note left:左侧注明用途

note right of MainActivity:右侧注明用途

note top of MainActivity:上面注明用途

note bottom of MainActivity:下面注明用途

包:

package "com.ztman.cn" #green{

class HashSet<? extends String>{

+boolean add (Object o)

+boolean remove(Object o)

}

结构体

struct secutiry_logging{

    + int Severity

    + int EventID

    + int BaseEventCount

    + long TimeStamp

    + std::string Source

}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值