How to align the rectangle vertical

0 votes
asked Nov 9, 2022 in Question / help by Aliy (120 points)

The follow is my code, I want to align the rectangle (R1,R2,R3,R4,R5),but the rectangle is always away from another one.Can someone tell me what should I do, Thanks. 

@startuml

top to bottom direction

skinparam nodesep 1

skinparam ranksep 1

<style>

rectangle {

  BackGroundColor #FFFFFF

  LineThickness 1

  LineColor black

}

</style>

rectangle "<size:13>" as R1 {

/'  left to right direction '/

  rectangle "PROGRAM" as R1_UC1

  rectangle "CONTEXT" as R1_UC2

  rectangle "NEXT" as R1_UC3

  rectangle "CHECK" as R1_UC4

  rectangle "OPERATE" as R1_UC5

  rectangle "R" as R1_UC6

  R1_UC1--[hidden]R1_UC2

  R1_UC2--[hidden]R1_UC3

  R1_UC3--[hidden]R1_UC4

  R1_UC4--[hidden]R1_UC5

  R1_UC5--[hidden]R1_UC6

}

rectangle "<size:13> " as R2{

  left to right direction

  rectangle "SEARCH" as R2_UC1

  rectangle "LINE SEARCH" as R2_UC2

  rectangle "NULL" as R2_UC3

  rectangle "SELECT" as R2_UC4

  rectangle "PASTE" as R2_UC5

  rectangle " R " as R2_UC6

  

  R2_UC1--[hidden]R2_UC2

  R2_UC2--[hidden]R2_UC3

  R2_UC3--[hidden]R2_UC4

  R2_UC4--[hidden]R2_UC5

  R2_UC5--[hidden]R2_UC6

}

rectangle "<size:13>" as R3{

  left to right direction

  rectangle "SEARCH" as R3_UC1

  rectangle "REPLACE" as R3_UC2

  rectangle "SEARCH UP" as R3_UC3

  rectangle "SEARCH DOWN" as R3_UC4

  rectangle "NULL" as R3_UC5

  rectangle "R" as R3_UC6

  R3_UC1--[hidden]R3_UC2

  R3_UC2--[hidden]R3_UC3

  R3_UC3--[hidden]R3_UC4

  R3_UC4--[hidden]R3_UC5

  R3_UC5--[hidden]R3_UC6

}

together {

rectangle "<size:13>" as R4{

  left to right direction

  rectangle "NULL" as R4_UC1

  rectangle "NULL" as R4_UC2

  rectangle "SEARCH UP" as R4_UC3

  rectangle "SEARCH DOWN" as R4_UC4

  rectangle "CANCEL" as R4_UC5

  rectangle "NULL" as R4_UC6

  R4_UC1--[hidden]R4_UC2

  R4_UC2--[hidden]R4_UC3

  R4_UC3--[hidden]R4_UC4

  R4_UC4--[hidden]R4_UC5

  R4_UC5--[hidden]R4_UC6

}

rectangle "<size:13>" as R5{

  left to right direction

  rectangle "NULL" as R5_UC1

  rectangle "NULL" as R5_UC2

  rectangle "SEARCH UP" as R5_UC3

  rectangle "SEARCH DOWN" as R5_UC4

  rectangle "CANCEL" as R5_UC5

  rectangle "NULL" as R5_UC6

  

  R5_UC1--[hidden]R5_UC2

  R5_UC2--[hidden]R5_UC3

  R5_UC3--[hidden]R5_UC4

  R5_UC4--[hidden]R5_UC5

  R5_UC5--[hidden]R5_UC6

}

}

R2 <-l- R1_UC5

R3 <-l- R2_UC6

R4 <-l- R3_UC3

R4_UC3 -l-> R5

R5 <-l- R1

@enduml

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...