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.

stereotypes for notes to be used when defining note's skinparam

0 votes

this is similar to issue at http://plantuml.sourceforge.net/qa/?qa=3770/howto-color-individual-meassage-arrows-combined-fragments

however I would like to ask also for feature for coloring notes/rnotes/hnotes independently

e.g.

 

skinparam note {

BackgroundColor<<st1> #white

BorderColor<<st1>> #green

FontColor<<st1>> #red

}

A -> B : msg

note<<st1>> over A : text 1

note over B #line:green;back:lightblue : text 2

asked Oct 7, 2015 in Wanted features by anonymous

1 Answer

0 votes

Hello,

Thanks for the feedback. With last beta version https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

@startuml
skinparam note {
BackgroundColor<<st1>> #white
BorderColor<<st1>> #green
FontColor<<st1>> #red
}
A -> B : msg
note<<st1>> over A : text 1
note over B #line:green;back:lightblue : text 2
@enduml

Is this what you are looking for ?

answered Oct 13, 2015 by plantuml (125,190 points)
Thanks! It works great.
With this beta version I will be able to use it for notes with the same border and background as the surroundings while for others I can have the default settings

I forgot to mention about #text:colorName property but I checked that it also works
i.e.
   note right B #line:green;back:lightblue;text:blue : text 2

There is one more thing. Is there a chance you can add the "shadowing" param to note attributes
e.g.

skinparam note {
BackgroundColor<<st1>> #white
BorderColor<<st1>> #green
FontColor<<st1>> #red
shadowing false
}

   note right B #line:green;back:lightblue;text:blue;shadowing:false : text 2
Ok, we like your suggestion.

So here is a new beta:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

It supports the following syntax:

@startuml
skinparam note {
BackgroundColor<<st1>> #white
BorderColor<<st1>> #green
FontColor<<st1>> #red
shadowing false
shadowing<<with>> true
shadowing<<without>> false
}
A -> B : msg
note<<st1>> over A : text 1
note over B #line:green;back:lightblue;shadowing:false : text 2
note<<with>> over A : text 3
note<<without>> over A : text 4
@enduml

Is this what you were expecting ?

Thanks again for your ideas!
Very good.
Thank you !!!
This has been released in V8032.
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...