Monday 20 November 2023

Creating Component Diagrams with Rectangle Notation in PlantUML

‘skinparam componentStyle rectangle’ command used to switch the diagram to rectangle notation.

umlNotation.txt

@startuml

[Component1] -left-> [Component2] : left
[Component1] -right-> [Component3] : right
[Component1] -up-> [Component4] : up
[Component1] -down-> [Component5] : down

@enduml

 

Above snippet generate below command.

 

 


Let’s set the component style to rectangle and see.

 

rectangleNotation.txt

@startuml

skinparam componentStyle rectangle

[Component1] -left-> [Component2] : left
[Component1] -right-> [Component3] : right
[Component1] -up-> [Component4] : up
[Component1] -down-> [Component5] : down

@enduml

 

Above snippet generate below diagram.


 

  

Previous                                                    Next                                                    Home

No comments:

Post a Comment