lutaml / lutaml-uml

UML module for LutaML
2 stars 2 forks source link

Support styling of UML diagrams #42

Open ronaldtse opened 4 years ago

ronaldtse commented 4 years ago

This page shows a number of possibilities: https://www.the-haystack.com/2008/02/12/create-attractive-site-diagrams-with-graphviz/

PlantUML allows styling their diagrams with {filename}.uml.inc, e.g.:

@startuml

skinparam Dpi 150
skinparam Monochrome false
skinparam LineType ortho
hide circle
/' skinparam CircledCharacterRadius 0 '/
/' skinparam CircledCharacterFontSize 0 '/
skinparam Default {
  TextAlignment center
  FontName Helvetica
}
skinparam Class {
  AttributeIconSize 0
  BackgroundColor White
  ArrowColor Black
  BorderColor Black
  FontStyle bold
  StereotypeFontSize 10
}
skinparam Rectangle {
  BackgroundColor White
  ArrowColor Black
  BorderColor Black
  FontStyle bold
  FontSize 11
  StereotypeFontSize 10
}
skinparam Object {
  BackgroundColor White
  ArrowColor Black
  BorderColor Black
  FontStyle bold
  FontSize 11
  StereotypeFontSize 10
}

skinparam Entity {
  StereotypeFontSize 10
}

@enduml
ronaldtse commented 4 years ago

GraphViz has a number of styling options: https://graphviz.org/doc/info/shapes.html