【发布时间】:2020-12-08 14:09:48
【问题描述】:
如何指定 UML 类图的框宽度。在示例中,我使用 classA 和 classB 并希望它们具有相同的框 witdh(黄色),以便宽度与方法/属性名称无关。
请在下面找到 UML 代码以及附带的屏幕截图,其中包含当前结果(左)和首选结果(右)。
非常感谢您的支持:)
@startuml testWidth
class classA {
{field} - attributeA : int
{field} - attributeB : int
{method} + methodA()
{method} + methodB()
{method} + veeeeeeery_looooong_named_method()
}
class classB {
{field} - attributeC : int
}
classA <|-- classB
@enduml
【问题讨论】:
标签: uml class-diagram plantuml