Class diagram visibility of methods and attributes

0 votes
asked Oct 22, 2017 in To be sorted by anonymous
I would like to use plantuml to produce a UML class diagram with several methods and attributes.

However, I do NOT want the red boxes / green circles which appear automatically if I mark a method/attribute with + or -. Instead I would like to see + or - in front of the names in the diagram, because this is UML standard.

Is there a why to disable the red boxes / green circles?

1 Answer

0 votes
answered Oct 22, 2017 by plantuml (200,200 points)
 
Best answer

Yes, you can use:

@startuml
skinparam classAttributeIconSize 0
class Dummy {
 -field1
 #field2
 ~method1()
 +method2()
}

@enduml

Is this what you are looking for ?

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuIhEpimhI2nAp5L8paaiBdOiAIdAJ2ejIVLCpiyBpgnALJ3W0aiek9JcvbOgL7CfwAPbfkQa678fA8CPHbmATRcf9HdvAOOQcbmAsX2s4P1ToyNba9gN0hG50000

commented Oct 23, 2017 by anonymous
yes! Thank you very much!
Is there somewhere a document which describes all possible skinparam?
...