还可以在类的声明末尾使用note left, note right,note top, note bottom来添加备注 单独用note这个关键字也是可以的,使用 … 符号可以作出一条连接它与其它对象的虚线 后记 画类图还有更多细节和扩展可参考PlantUML文档:https://plantuml.com/zh/class-diagram 踩了很多坑,比如安装Graphviz时没有执行”dot -...
类图:http://plantuml.com/class-diagram 流程图:http://plantuml.com/activity-diagram-beta 时序图:http://plantuml.com/sequence-diagram 用例图:http://plantuml.com/use-case-diagram 状态图:http://plantuml.com/state-diagram 组件图:http://plantuml.com/component-diagram 1. 类图 案例1: @startum...
@startuml ' 基础类的定义 class QObject { -QList<QObject*> children -QMetaObject *metaObject +void setParent(QObject*) +void addChild(QObject*) +void removeChild(QObject*) +QString objectName } note right of QObject: QObject 是Qt所有类的基类\n提供基础的对象管理功能 class QMetaObject {...
use case diagram, class diagram, activity diagram (here is the new syntax), component diagram, state diagram, object diagram, wireframe graphical interface PlantUML通过简单和直观的语言来定义图形,它可以生成PNG、SVG和二进制 图片。下面是一个简单的示例: #+BEGIN_SRC plantuml :file ../img/orgmode-...
class diagram, activity diagram (here is the new syntax), component diagram, state diagram, object diagram, wireframe graphical interface PlantUML通过简单和直观的语言来定义图形,它可以生成PNG、SVG和二进制 图片。下面是一个简单的示例: #+BEGIN_SRC plantuml :file ../img/orgmode-babel-sequenceuml....
查看net.sourceforge.plantuml.xmi.XmiClassDiagramStandard中的createEntityNode方法: protectedfinalElementcreateEntityNode(Entity entity){Elementcla=this.document.createElement("UML:Class");if(entity.getLeafType() == LeafType.NOTE) {returnnull;
}classFlight{ flightNumber : Integer departureTime : Date }@enduml 生成的类图如下: 定义可见性 以下符号定义字段或者方法的可见性: -:private #:protected ~:package private +:public 例如: @startumlclassDummy{ -field1#field2~method1() +method2() ...
class diagram, activity diagram (here is the new syntax), component diagram, state diagram, object diagram, wireframe graphical interface PlantUML通过简单和直观的语言来定义图形,它可以生成PNG、SVG和二进制 图片。下面是一个简单的示例:#startuml Alice -> Bob: synchronous call Alice ->> Bob: asynchr...
@startuml Alice -> Bob :hello note left: this is a first note Bob -> Alice : ok note right:this is another note Bob -> Bob: I am thinking note left a note end note @enduml 在这里插入图片描述 总结 本文介绍了PlantUML的使用,PlantUML 通过编程的方式画图,对我们广大程序员而言无疑很友...
end of class } Car *- Wheel : have 4 > Car -- Person : < owns Person : +Work() Person : -int age Person : ~Car BMW note bottom of Person : maybe this guy is <size:20>you</size> note "oh this guy has a BMW" as N1 Person .. ...