Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Multiple stereotypes on one component?

0 votes

Are multiple stereotypes on one component (or other entity) supported? What is the right way to apply them?

Here's an example that demonstrates issues with guillemets in the middle and applying skinparams based on the 2nd stereotype:

component comp1 <<white>>
component comp2 <<white>><<red>>
component comp3 <<red>><<white>>
component comp4 <<noskinparam>><<red>>

skinparam component {
  backgroundColor<<white>> White
  backgroundColor<<red>> Red
}
 
Result:
 
 
Thanks!
asked Mar 5, 2016 in Wanted features by Mika (220 points)

1 Answer

0 votes
 
Best answer

Thanks for the report.

This has been partially solved in last release V8037.

See example:

@startuml
component comp1 <<white>>
component comp2 <<white>><<blue>>
component comp3 <<blue>><<white>>
component comp4 <<noskinparam>><<blue>>
skinparam component {
  backgroundColor<<white>> White
  borderColor<<blue>> Blue
}
@enduml

 

answered Mar 6, 2016 by plantuml (124,290 points)
selected Mar 6, 2016 by Mika
Thanks! That was fast! :)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...