Using skinparam command, we can customize the color for stereotyped classes.
Example
skinparam class { BackgroundColor<<Animal>> #FFF0F0 BorderColor<<Animal>> Red }
stereoTypeClassColor.txt
@startuml skinparam class { BackgroundColor LightBlue ArrowColor Tomato BorderColor SpringGreen BackgroundColor<<Animal>> #FFF0F0 BorderColor<<Animal>> Red } abstract class Mammal Class Dog <<Animal>> class BullDog class Poodle class Beagle class Cat <<Animal>> class PersianCat class Ragdoll Mammal <|-- Cat Mammal <|-- Dog Dog <|-- BullDog Dog <|-- Poodle Dog <|-- Beagle Cat <|-- PersianCat Cat <|-- Ragdoll @enduml
Above snippet generate below diagram.
No comments:
Post a Comment