How do I style Use Cases

0 votes
asked Jan 7, 2017 in Closed feature request by mark (160 points)
edited Jan 7, 2017 by mark
I'm creating Use Cases that I would like to style.  If I do the following I get an orange background in the ellipse, as expected.

     (Node) as n #orange

How do I control the borderColor on an instance?  I've looked all over the place and can't see a single example of setting background and bordercolor

I've also tried using skinparam like this:

skinparam usecase {

  BackgroundColor DeepSkyBlue

  ArrowColor DodgerBlue

  BackgroundColor<<Share>> orange

  BackgroundColor<<Share>> DarkOrange


However, if I define the node as:

           (Node) as p1 <<Share>>

While the colors are correct, it shows the text with <<Share>>, which I don't want.  I tried adding "hide stereotype" in the document but it did not work.

Is there any way to get rid of this?

Btw, I'm only using the Use Case because I like the small ellipse shapes with minimal text. I'm actually using them to represent instances of objects in a graph. If there was a way to use other diagram types and replicate this look that would allow better styling, that would be fine too.

1 Answer

+1 vote
answered Jan 8, 2017 by plantuml (156,680 points)
selected Jan 18, 2017 by mark
Best answer


With last beta

You can have:

usecase foo #orange;line:blue
(dummy) #orange;line:yellow

This syntax works in some other place but is not well documented yet.

We have to look on the "hide stereotype" thinks also.

Tell us if you find issues!

commented Jan 18, 2017 by mark (160 points)
Thank you!  It works great.  Any idea when this will be out of beta?  The reason I ask is that plantuml.jar comes bundled with the plugins I use to render it in various editors.  For now, I went into Atom's markdown-preview-enhanced and swapped out the beta, but it may get overwritten the next time the plugin is updated.
commented Jan 18, 2017 by plantuml (156,680 points)
An official release will be probably pushed within next 10 days, a message will be posted here when done
commented Jan 18, 2017 by mark (160 points)
Fantastic.  Thanks again for your help and this great product!
commented Jan 21, 2017 by plantuml (156,680 points)
Version 8054 has been published with the new code.