Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Marking class diagram if is public, private, or protected

0 votes

I want to mark class using symbol +/-/#

I have trying like example :

@startuml

+class fo{

# field1 : type

- foo(param : type2) : type3

}

@enduml

but it's not working,

how to solution this problem ?

asked Jul 18, 2016 in Wanted features by uwong15 (390 points)

1 Answer

0 votes

Thanks for the suggestion.

But what's the drawing difference between a public class and a private class ?

Any pointer on this ?

Thanks!

answered Jul 20, 2016 by plantuml (113,980 points)
nothing, I just want to add (+), (-) or (#) character in front of the class name in class diagram...
Ok.

With last beta
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

@startuml
-class fo{
    # field1 : type
    - field2 : type
    - foo1(param : type2) : type3
    # foo2(param : type2) : type3
}
@enduml

We display a graphical symbol instead of the character.
What do you think about it ?

Thanks,
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...