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
不知道是否满足你的需要