Make separate formatting for each `box` in Sequence_Diagram

0 votes
asked Oct 26 in Question / help by jhon6493 (160 points)

Make separate formatting for each `box` in Sequence_Diagram

Make for `box "Lev-1"`
    - the thickness of the lines is at your discretion;
    - the color of the lines is red ;
    - line type - solid;
    - padding - at your discretion;
    - marging - at your discretion; 
    - the `box` fill is blue;
    - orientation on the `z` axis - 0; 


Make for `box "Lev-2"`
    - the thickness of the lines is at your discretion;
    - the color of the lines is blue ;
    - line type - dotted line;
    - padding - at your discretion;
    - marging - at your discretion;     
    - the `box` fill is blue;
    - orientation on the `z` axis - 1; 

If some property is not supported by PlantUML, then write "property is not supported";
If a property is specified inaccurately, then write the correct name of the property.;

I expect to see something like the diagram in the picture.

1 Answer

+1 vote
answered Oct 26 by kirchsth (7,760 points)

you could try something like 

display problem, please open link

BR Helmut

commented Oct 27 by The-Lu (85,440 points)

Here is the corresponding image:

@startuml
!pragma teoz true

<style>
box {
  LineColor blue
  BackgroundColor lightblue
  LineThickness 5

  .red {
    LineColor red
    BackgroundColor #white
    LineStyle 15-5
  }
}
</style>

box "Outer Box" 
box "Inner Box1" <<red>>
participant Alice
end box
box "Inner Box2"  <<red>>
participant Bob
Alice -> Bob : Hello from Inner Box
end box
end box
@enduml

Regards,
Th.

...