skin-adam for use case diagram

0 votes
asked Oct 2, 2018 in Question / help by rkrug (420 points)

Hi

I have the following code

skinparam usecase {
    BackgroundColor SkyBlue
    ArrowColor SkyBlue

    BackgroundColor<< Convert >> Tomato
}


usecase UC1 as "This should be Tomato
several lines to define your usecase.
You can also use separators.
--
Several separators are possible.
==
And you can add titles:
..Conclusion..
This allows large description."

usecase UC2 as "And this should stay blue

---

and some more text"

and would like to apply the skin-adam << Convert >> to UC2. How can I do that? 

1 Answer

0 votes
answered Oct 2, 2018 by plantuml (294,960 points)
selected Oct 3, 2018 by rkrug
 
Best answer

You can use this :

@startuml
skinparam usecase {
    BackgroundColor SkyBlue
    ArrowColor SkyBlue

    BackgroundColor<< Convert >> Tomato
}

usecase UC1 << Convert >> as "This should be Tomato
several lines to define your usecase.
You can also use separators.
--
Several separators are possible.
==
And you can add titles:
..Conclusion..
This allows large description."

usecase UC2 as "And this should stay blue

---

and some more text"
@enduml

http://www.plantuml.com/plantuml/uml/RP3DRi8m48JlVeeHToArnmeGFuy0FVIun5kms7YHrowDghvxdQXHGQfFripkU3wlBLFAfHDdbn2lbAX3CMx965yEzMoflPoIbkXtAfgml_HRAJnwcvJqzYZ_jxDOOAVnWrF6QeM3TfJLVJitFVIwUyBZ31bcXtCms5cBU1nvMZEkCoIG4DcG5PxVwnMzbZGrRzoR5hGKGM8wg30UsB8cQznyxlQ_ANyoA36kQXQEKWEMIxU97lsKuprooCBsufgc5csbMD3OD6wiII9wCmYb4yEpjIbSy-3FS8_vF88DmVaEpZBrE8wVDw_T75NVj6DqcXYPF_FChJdwqiaF

commented Oct 3, 2018 by rkrug (420 points)
Thanks - that works. But I have one additional question.

I would prefer not have the <<Convert>> printed in the use case diagram, and only the skin  param applied. How could I do this, if I want to use the skinparam for multiple use case objects?
commented Oct 3, 2018 by rkrug (420 points)
Thanks a lot - works perfectly now.
...