Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Customize Class Color and Style in PlantUML Using Inline Style

Using below Style, we can customize the Class color and style.

 

#[color|back:color];header:color;line:color;line.[bold|dashed|dotted];text:color

 

classColorAndStyle.txt

@startuml

abstract AbstactList
annotation Documented #pink;line:red;line.bold;text:red
class ArrayList #aliceblue;line:green;line.dashed;text:green
interface List #gold;line:blue;line.dotted;text:blue

class DahsedClass #line.dashed:palegreen
class DottedClass #line.dotted:blue
class BoldClass #line.bold
class ColorGradientClass #back:lightgreen|red;header:blue/red

@enduml

 

Above snippet generate below diagram.


 

 

Previous                                                    Next                                                    Home


This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

How to Customize Class Color and Style in PlantUML Using Inline Style

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×