Text alignment for components in component diagram

0 votes
asked May 4 in Question / help by lp-lima (140 points)
edited May 5 by lp-lima

Is there a way to set the text alignment for a specific stereotype in component diagrams? Right now, I can only either get everything changed by a global skinparameter, or anything at all. Isn't there a middle ground?

EDIT: inclusion of an example. In the diagram below, I don't know how to centralize / align the text to the left on those components individually.

@startuml
skinparam {
    defaultTextAlignment left
}

skinparam component {
    defaultTextAlignment<<centered>> center
}

component left [
    I wanted this long long long text
    aligned to the left
]

component center<<centered>> [
    I wanted this long long long text
    centered
]


@enduml

1 Answer

0 votes
answered May 5 by plantuml (226,380 points)
Not sure...

Could you post a simple and short example we could talk about ?

Thanks !
commented May 5 by lp-lima (140 points)
Added an example to the OP. Thanks!
...