A gallery of all the themes included with PlantUML.
This project is maintained by The-Lum
Class diagrams are designed using a syntax that mirrors those traditionally employed in programming languages. This resemblance fosters a familiar environment for developers, thereby facilitating an easier and more intuitive diagram creation process.
See PlantUML Class Diagram for more information.
@startuml
abstract abstract
abstract class "abstract class"
annotation annotation
circle circle
() circle_short_form
class class
class class_stereo <<stereotype>>
diamond diamond
<> diamond_short_form
entity entity
enum enum
exception exception
interface interface
metaclass metaclass
protocol protocol
stereotype stereotype
struct struct
@enduml
@startuml
hide empty members
abstract class AbstractList
abstract AbstractCollection
interface List
interface Collection
List <|-- AbstractList : AList to List <
Collection "many" <|-- "many" AbstractCollection : AColl to Coll
Collection <|- List : List to Coll
AbstractCollection <|- AbstractList : AList to AColl
AbstractList <|-- ArrayList : ArList to AList
note on link: this is a note\non link
class ArrayList {
Object[] elementData
size()
}
enum TimeUnit {
DAYS
HOURS
MINUTES
}
annotation SuppressWarnings
SuppressWarnings +-l-> ArrayList
annotation Annotation <<stereotype>> {
annotation with members
String foo()
String bar()
}
class Dummy {
-field1
#field2
~method1()
+method2()
{static} String id
{abstract} void methods()
}
note "This is a floating note" as N1
N1 #-u-> AbstractCollection
N1 -r-> ArrayList
package foo_frame <<Frame>> {
class Foo<? extends Element> {
int si ze()
}
}
Foo *-- Element
Element --() interface
note right of Foo::size
This is a note
end note
note right of Element
This is a note
end note
class User <<user>> <<admin>> {
.. Simple Getter ..
+ getName()
+ getAddress()
.. Some setter ..
+ setName()
__ private data __
int age
-- encrypted --
String password
}
@enduml
@startuml
' Source: https://github.com/plantuml/plantuml/issues/1467 '
interface Map<K,V>
class HashMap<Long,Customer>
Map <|.. HashMap
Shop [customerId: long] ---> "customer\n1" Customer
HashMap [id: Long] -r-> "value" Customer
@enduml