Following keywords are used to add notes on a link.
a. note on link
b. note left on link
c. note right on link
d. note top on link
e. note bottom on link
Use above keywords just after the link definition.
Example
List <|.. AbstractList note on link #red: note that is red color AbstractList <|-- ArrayList note left on link #00FF00 note that is green color end note
noteOnLinks.txt
@startuml class List class AbstractList class ArrayList class LinkedList class Serializable List <|.. AbstractList note on link #red: note that is red color AbstractList <|-- ArrayList note left on link #00FF00 note that is green color end note AbstractList <|-- LinkedList note right on link #gold note that is gold color end note Serializable <|.. ArrayList note top on link #lightblue note that is lightblue color end note Serializable <|.. LinkedList note bottom on link #aqua note that is aqua color end note @enduml
Above snippet generate below diagram.
No comments:
Post a Comment