【发布时间】:2022-08-24 02:20:59
【问题描述】:
您可以将类的名称放在“** 和 **”之间。
例子:
@startuml
class **House** {
}
@enduml
【讨论】:
-
出色的。但是有没有办法系统地得到这个,即使用
skinparam?
现在有工作支持样式(查看 PlantUML 问答论坛了解更多信息)。
@startuml
<style>
classDiagram {
class {
' attributes and methods
FontColor blue
BackgroundColor yellow
' class name
header {
FontSize 20
FontColor violet
FontStyle bold
}
}
}
</style>
hide circle
class User {
name : String
id : integer
toString() : String
}
@enduml
【讨论】: