Is there a way to enforce UML conform style?

0 votes
asked Jun 9 in Question / help by Toorero (120 points)
edited Jun 10 by Toorero

Basically, I want to render proper UML class diagrams.

I already have the following style definitions:

skinparam classAttributeIconSize 0
hide circle
skinparam roundcorner 0

but I can't figure out how to

  1. get the class/enum/abstract/... names written in bold
  2. get the corresponding keywords «interface», «abstract», «enumeration» displayed
  3. draw a thin frame around the entire diagram and set the title to be displayed in the top left as if I'd drawn a package of type frame around everything with the name "class Foo"

I tried to work around this by defining ugly macros for problem 1 and 2, but there are many cons to this

For fixing 3 I just tried to draw a package around with a corresponding style:

<style>
.frame {
  FontSize 8
  LineColor Black
  LineThickness 0.2
}
</style>

package "class Foo" <<frame>> {
  ...
}

but then I can't use namespaces or other stuff I might like to use, and I can't use the frame package in the default style. Also weirdly, the FontSize doesn't seem to have an effect, but does so if specified in the root element.

Thanks for reading this question. I really hope there is a solution to this problem.

Sincerely Toorero

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...