Only draw the icon and the name if no members are specified.

0 votes
asked Jul 9 in Wanted features by kasra (560 points)
Hello,

Sometimes when we do a class diagram we are more focused on the hierarchies without the need to specifying members. It would be nice for a class that doesn't have information in terms of members to only draw the icon and the name  part of the rectangle.

For example :

@startuml
Class01 <|-- Class02
Class03 *-- Class04
Class05 o-- Class06
Class07 .. Class08
Class09 -- Class10
@enduml

A lot of space is used for nothing ( second and third stage are empty ).

Thanks,

Kasra

1 Answer

0 votes
answered Jul 9 by kasra (560 points)
edited Jul 9 by kasra
 
Best answer

I didn't check the doc well actually is already possible with : 

class Dummy2 {

  +hiddenMethod()

}

hide members

https://plantuml.com/en/class-diagram

Hide attributes, methods section

Kasra

commented 6 days ago by Todd Musheno (330 points)
It would be nice to do this outside the innerds of the class.
...