plantUML布局?

plantuml
我想让NotificationManager和NotificationService水平排列,NotificationService和它的两个实现垂直排列,该如何设置?

@startuml
interface NotificationService {
    +send(message:string)
}

class EmailNotificationService {
    +send(message:string)
}

class SMSNotificationService {
    +send(message:string)
}

NotificationService <|... EmailNotificationService 
NotificationService <|... SMSNotificationService


class NotificationManager {
    -notificationService: NotificationService
    +sendMessage(message:String)
}

NotificationManager o-- NotificationService

@enduml

image.png

阅读 300
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进