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

0 votes
asked Oct 7, 2015 in Wanted features by anonymous

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

1 Answer

0 votes
answered Oct 13, 2015 by plantuml (134,650 points)

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 ?

commented Oct 15, 2015 by anonymous
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
commented Oct 15, 2015 by plantuml (134,650 points)
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!
commented Oct 16, 2015 by anonymous
Very good.
Thank you !!!
commented Nov 1, 2015 by plantuml (134,650 points)
This has been released in V8032.
...