Support for node line style in state diagrams

0 votes
asked Jan 10, 2014 in Wanted features by fred (540 points)
Hello,

In class diagrams, the

  ##[dashed]red

double sharp notation may be used to specify the line style of a node.

 

However, in state diagrams, this does not seem possible.

 

Could you please consider adding support for the double sharp notation for state diagrams as well?

 

Thanks,

Fred

1 Answer

0 votes
answered Jan 13, 2014 by plantuml (295,760 points)
selected Jan 13, 2014 by fred
 
Best answer

Sure, you can use the following beta
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

@startuml
state Foo1 #red-green ##00FFFF
state FooDashed #red|green ##[dashed]blue {
}
state FooDotted ##[dotted]blue {
}
state FooBold ##[bold] {
}
@enduml


We are not 100% satisfied by the syntax, so idea/feedback welcome!
 

commented Jan 13, 2014 by fred (540 points)
Thank you. However, although there is no longer a parsing error, the outline of composite states is not affected. It seems that it only works for simple states.
commented Jan 13, 2014 by plantuml (295,760 points)
Thanks for the feedback. This should be ok with new beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

@startuml
state Foo1 ##[dotted]blue {
}
state Foo2 ##[dotted]green {
state inner1 ##[dotted]yellow
}

state out ##[dotted]gold

state Foo3 ##[bold]green {
state inner2 ##[dotted]yellow
}
out --> inner2
@enduml

Thanks to go on with your tests!
commented Jan 14, 2014 by fred (540 points)
This is indeed ok now.

Thanks!
...