Saturday 24 June 2023

PlantUML: use HTML tags while defining notes

You can use following HTML tags while defining the notes.

 

a.   <b>

b.   <u>

c.    <i>

d.   <s>, <del>, <strike>

e.   <font color="#AAAAAA"> or <font color="colorName">

f.     <color:#AAAAAA> or <color:colorName>

g.   <size:nn> to change font size

h.   <img src="file"> or <img:file>: the file must be accessible by the filesystem

 

htmlNotes.txt

@startuml

interface List{
	
}

abstract class AbstractList implements List{
	
}

interface Serializable{
	
}

class ArrayList extends AbstractList implements Serializable{
	
}

note top of List 
An <b>ordered collection</b> (also known as a <i>sequence</i>). 
The user of this interface has precise control 
over where in the list each element is inserted.
end note

note left of AbstractList
This class provides a skeletal <b><font color="#FF0000"> implementation of the List interface </font></b> 
to minimize the effort required to implement this interface backed by 
a <u>random access</u> data store (such as an array).
end note


note right of ArrayList : <size:35> Resizable-array </size> implementation \n of the List interface
note bottom of Serializable : Serializability of a class is enabled \n by the class implementing this

@enduml

 

Above snippet generate below diagram.


 

  

Previous                                                    Next                                                    Home

No comments:

Post a Comment