-
-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for MetaClass
and Stereotype
in class diagram
#1159
Add support for MetaClass
and Stereotype
in class diagram
#1159
Conversation
Many thanks for your contribution! Even if we have merged it, we are not sure that this is really a good idea: now there are some confusion about
Maybe we should merge the two notions? |
Hello @plantuml team, @arnaudroques,
Maybe but the 2 can maybe live together, see a possible example here:
or
I just simple answered to the initial request: Then: Also would it be possible to change the
But that would take 2 characters and not 1! plantuml/src/net/sourceforge/plantuml/svek/image/EntityImageClassHeader.java Lines 232 to 233 in 5c4b6b7
Happy to improve PlantUML tool. |
first of all - thanks for crucial update! since plantuml forum suffers from infinite browser security checks that don't allow me to post anything - can i ask more common questions here, probbaly, someone has an information on following
|
Hello @grivo, and all,
Regards. |
Add keywords: - `metaclass` - `stereotype` New PlantUML Keywords from: - plantuml/plantuml#1159
well, i have created some diagram that freezes some current bugs related with metaclass/stereotype/interface usage it contains some proposal of new layout as well, that fixes usage conflicts staying more UML 2.x compatible and same time lightweight probably, more bugs and feature tasks should be created according my proposal
you may see diagram as image as well since it's too heavy for demo plantuml online server example of stereotype usage (taken from here) |
also: how can i change class or custom stereotype cirlce char and spot colour with |
any thoughts? |
Add new types: - MetaClass - Stereotype _Ref.:_ - plantuml/plantuml#1159
@The-Lum - thanks a lot for bringing on metaclass / stereotype keywords into plantuml core, it is real game changer! nevertheless, yet there are some questions regarding css/style
my proposal example is
"<<(X, #64BDF9) xyz>>" - this inline style override works fine and should be left as it is for future use, however, in case of multiple stereotypes applied - it does not: "<<(Z, #CCCCCC) interface, xyz>>" there are additional things that will make metaclass / stereotype / interface usage more correct, however, small steps are easier to accomplish, imo |
i'm not sure if my proposal from above is available, can you confirm, please? |
Hello @grivo, and all,
Not yet. It is a wanted feature. <style>
spot {
BackgroundColor pink
LineColor blue
FontColor green
FontStyle plain
}
</style>
class C
entity E And (individually and globally) for:
Regards, |
@The-Lum - and stereotypes-driven custom styling isn't available yet as well? i have tried multiple patterns - none of them works... or, maybe, i'm just wrong with syntax?
|
* mod: syntax highlighting: add `exception` Add on line begin keywords: - `exception` Ref.: - plantuml/plantuml#1056 * mod: syntax highlighting: (add `metaclass`, ...) Add keywords: - `metaclass` - `stereotype` New PlantUML Keywords from: - plantuml/plantuml#1159
Requested by:
Even if:
Awaiting for another solution, here is a simple proposal to support
MetaClass
andStereotype
in class diagram.[Special credit to #1056 and especially #1028]