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

0 votes
asked Jul 9, 2022 in Wanted features by kasra (960 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, 2022 by kasra (960 points)
edited Jul 9, 2022 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 Sep 26, 2022 by Todd Musheno (2,680 points)
It would be nice to do this outside the innerds of the class.
...