Please allow to display generics between "<" and ">" instead of inside a rectangle

0 votes
asked Jul 19, 2017 in Closed feature request by Fuhrmanator (1,700 points)

I had some diagrams that were showing generics in a class with "<type>" (which is how you'd draw them on a whiteboard). Now, that way is being replaced by the generics inside a rectangle. This is nice, but I'd like to display it inside  "<" and ">"  as before.

@startuml

skinparam style strictuml

hide empty members

class "coursGroupe:\nArrayList<CoursGroupe>" as g 

@enduml

I would like to display it the older way, e.g., UserDao<User> below: 

commented Jul 19, 2017 by Fuhrmanator (1,700 points)
I found a work-around with replacing one of the < or > with its unicode:

class "coursGroupe:\nArrayList<CoursGroupe&#62;" as g

1 Answer

0 votes
answered Jul 24, 2017 by plantuml (294,960 points)
selected Mar 21, 2018 by Anthony-Gaudino
 
Best answer

We've added a "genericDisplay" parameter.
So with last beta, you can have:

https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

@startuml
skinparam style strictuml
skinparam genericDisplay old
hide empty members
class "coursGroupe:\nArrayList<CoursGroupe>" as g
@enduml


The parameter name is not perfect : any suggestion welcomed!
 

...