Friday 19 April 2024

PlantUML: customize legend font, color using skinparam command

Following skinparam commands customize legend font, color.

skinparam LegendBackgroundColor palegreen
skinparam LegendBorderColor aqua
skinparam LegendBorderThickness 5
skinparam LegendFontColor red
skinparam LegendFontName Papyrus
skinparam LegendFontSize 18
skinparam LegendFontStyle italic

 

legendCustomizationViaSkinparam.txt

@startuml

skinparam LegendBackgroundColor palegreen
skinparam LegendBorderColor aqua
skinparam LegendBorderThickness 5
skinparam LegendFontColor red
skinparam LegendFontName Papyrus
skinparam LegendFontSize 18
skinparam LegendFontStyle italic

legend top center
	short legend
	on center
end legend

Client -> LoginServer: Enter user name
Client -> LoginServer: Enter password
Client -> LoginServer: Submit the form 
LoginServer -> ADServer: Check the credentials
ADServer -> LoginServer: Login Successful
LoginServer -> Client: Login Successful

@enduml

 

Above snippet generate below diagram.

 


 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment