Is it possible to hide the component icon ?

+2 votes
asked Feb 4 in Question / help by Nicolas
edited Feb 5
Hi,

Is there a skinParam to hide the component icon. On the top right in Uml2 and by default on the left.

I want to be able to use the simple notation like [box 3] --> [box 4] with spaces between words.

Else I have to declare for example

rectangle box_3 as "box 3"

And then use box_3 --> box_4

I can use (box 3) but it draw a circle. I can use "box 3" but it draw an Actor.

Thanks for your help,

Nicolas

4 Answers

–1 vote
answered Jun 7 by yeongjun (120 points)

I think this link will help you

commented Jun 8 by Martin
I tried to tie this answer in to the question but failed, sorry if I'm missing something.  Like the OP, I'd like the shorthand of [A] --> [B] to autovivificate the rectangles but without the little component icons being added in.  A neat solution would be to allow "skinparam componentStyle rectangle".  I'm probably mis-using a UML tool to draw general flow-diagrams, but erm that's what I mainly do with it.
commented Jun 9 by Nicolas

Like Martin said the link doesn't help. And "skinparam componentStyle rectangle" would be perfect for me as well.

commented Jun 9 by plantuml (226,400 points)
With last beta http://beta.plantuml.net/plantuml.jar you can now have "skinparam componentStyle rectangle"

Tell us if it's not working for you.
commented Jun 10 by yeongjun (120 points)

Isn't this what you want?

PlantUML diagram

@startuml
skinparam rectangle {
    backgroundColor Transparent
    borderColor Transparent
    shadowing false
    stereotypeFontColor Transparent
}

rectangle "Box 3" as b1
rectangle "Box 4" as b2

b1 -right-> b2
@enduml

commented Jun 10 by Martin
Plantuml - great job as usual!  The following now works for me:
@startuml
skinparam componentStyle rectangle
[box 1] -> [box 2]
@enduml
Which is a nice short-hand mechanism to have; thank you.
commented Jun 11 by yeongjun (120 points)
edited Jun 11 by yeongjun

@Martin thanks for short-hand! How about below?

@startuml
skinparam componentBorderColor transparent
skinparam componentBackgroundColor transparent
skinparam shadowing false

[box 1] -down-> [box 2]
@enduml

0 votes
answered Jun 9 by jongliko (180 points)

Setting background and border transparent hide the default component icon on the left

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuIhEpimhI2nAp5L8piyjoCzBpIjnoYzAIIropi_9Br8eAKhCAmRA0uMnAarCpauloY_DIy5K7fsKNw5W7AkWgskd06QRn78vfEQb06q50000

But it meens you can't use any background or border colors...

0 votes
answered Jun 10 by Martin

Moving Plantuml's response to an answer:
With last beta http://beta.plantuml.net/plantuml.jar you can now have "skinparam componentStyle rectangle"

0 votes
answered Jun 10 by jongliko (180 points)
Thanks Plantuml it's just woking perfect for me too ! And thanks Martin for the Skinparam Idea. It's perfect for quick and simple flow-diagrams.
...