Marking class diagram if is public, private, or protected

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

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 ?

1 Answer

0 votes
answered Jul 20, 2016 by plantuml (132,110 points)

Thanks for the suggestion.

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

Any pointer on this ?

Thanks!

commented Jul 20, 2016 by uwong15 (390 points)
edited Jul 20, 2016 by uwong15
nothing, I just want to add (+), (-) or (#) character in front of the class name in class diagram...
commented Jul 20, 2016 by plantuml (132,110 points)
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,
...