Skinparam for boundary, control, database, and entity in sequence diagram.

0 votes
asked Nov 2, 2016 in Wanted features by George Liou (240 points)
Hi,

The skinable actor and participant in sequence diagram is quite useful. :)

The behavior of rev.8048 will bind these 4 types: boundary, control, database, and entity, to the skinparam of actor.

If using current naming style, is it possible for the following syntax also work?

skinparam sequence {
    BoundaryBackgroundColor #de935f
    BoundaryBorderColor #f5871f
    ControlBackgroundColor #b5bd68
    ControlBorderColor #718c00
    DatabaseBackgroundColor #8abeb7
    DatabaseBorderColor #3e999f
    EntityBackgroundColor #81a2be
    EntityBorderColor #4271ae
}

Best wishes,
George

1 Answer

0 votes
answered Nov 3, 2016 by plantuml (295,000 points)
selected Nov 4, 2016 by George Liou
 
Best answer

Thanks for the feedback.
This has been fixed in last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Note that you should not use "sequence" in the parameter name.
The now working example is:

@startuml
skinparam {
    ActorBackgroundColor red
    ActorBorderColor blue
    BoundaryBackgroundColor #de935f
    BoundaryBorderColor #f5871f
    ControlBackgroundColor #b5bd68
    ControlBorderColor #718c00
    DatabaseBackgroundColor #8abeb7
    DatabaseBorderColor #3e999f
    EntityBackgroundColor #81a2be
    EntityBorderColor #4271ae
}
boundary boundary
control control
database database
entity entity
actor actor
@enduml


Some other parameters may not been well implemented, so do not hesitate to post again.
Thanks again,

commented Nov 4, 2016 by George Liou (240 points)
Hi,

Thank you, it works smooth. ^_^

I tried a color set modified from tomorrow color theme
as a tiny test case as follows:

@startuml
skinparam {
    ActorBackgroundColor #cc6666
    ActorBorderColor #c62021
    BoundaryBackgroundColor #fbaf60
    BoundaryBorderColor #e08510
    ControlBackgroundColor #b5bd68
    ControlBorderColor #718c00
    DatabaseBackgroundColor #8abeb7
    DatabaseBorderColor #39959b
    EntityBackgroundColor #81a2be
    EntityBorderColor #4271ae
    ParticipantBackgroundColor #b294bb
    ParticipantBorderColor #8959a8
}

skinparam sequence {
    LifeLineBorderColor #404040
    ArrowColor #101010
}

actor A1
boundary B2
control C3
database D4
entity E5
participant P6

activate A1 #cc6666
A1 --> B2 : To boundary
activate B2 #fbaf60

B2 --> C3 : To control
activate C3 #b5bd68

C3 -> D4 : To database
activate D4 #8abeb7

D4 -> C3 : Resp data to C3
deactivate D4

C3 --> E5 : To entity
activate E5 #81a2be

E5 -> P6 : To log
activate P6 #b294bb

P6 -> E5 : OK
deactivate P6

E5 --> C3 : Resp to C3
destroy E5

C3 --> B2 : Resp to B2
deactivate C3

B2 --> A1 : Resp to A1
deactivate B2
deactivate A1

@enduml




Many thanks, and best wishes,
George
...