Tuesday 16 May 2023

PlantUML: Change arrow style using inline notation

We can customize the color or style of arrows using the below inline notation.

#color;line.[bold|dashed|dotted];text:color

 

customizeArrowColor.txt

@startuml

actor actor1

actor1 --> (usecase1) : normal
actor1 --> (usecase2) #line:red;line.dashed;text:red : red dashed
actor1 --> (usecase3) #green;line.bold;text:green : green bold
actor1 --> (usecase4) #blue;line.dotted;text:blue : blue dotted

@enduml

 

Above snippet generate below diagram.

 


 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment