A style for plantUML
Code example for dark theme
@startuml
!define DARK
!includeurl https://raw.githubusercontent.com/XaBerr/plantUMLstyle/master/style.plantuml
' your code here
@enduml
@startuml
!define DARK
!includeurl https://raw.githubusercontent.com/XaBerr/plantUMLstyle/master/style.plantuml
abstract class Animal {
- name: String
- age: int
- family: String
- gender: bool
--
+ setName()
+ setAge()
+ setFamily()
+ setGender()
+ getName(): String
+ getAge(): int
+ getFamily(): String
+ getGender(): bool
+ eat( food )
}
class Penguin {
- type: String
+ setType()
+ getType(): String
}
note left of Penguin: type can be\n(skipper, soldato, kowasky, riko)
class Cage {
- size: vector<int, int>
- maxNumAnimals: int
+ setType()
+ setMaxNumAnimals(): vector<int, int>
+ getType()
+ getMaxNumAnimals(): int
}
Animal <|-- Penguin
Animal <|-- Cat
Animal <|-- Otter
Animal "a 2..*" o-left-- "c 1..*" Cage
@enduml
Code example for light theme.
@startuml
!define LIGHT
!includeurl https://raw.githubusercontent.com/XaBerr/plantUMLstyle/master/style.plantuml
' your code here
@enduml
@startuml
!define LIGHT
!includeurl https://raw.githubusercontent.com/XaBerr/plantUMLstyle/master/style.plantuml
abstract class Animal {
- name: String
- age: int
- family: String
- gender: bool
--
+ setName()
+ setAge()
+ setFamily()
+ setGender()
+ getName(): String
+ getAge(): int
+ getFamily(): String
+ getGender(): bool
+ eat( food )
}
class Penguin {
- type: String
+ setType()
+ getType(): String
}
note left of Penguin: type can be\n(skipper, soldato, kowasky, riko)
class Cage {
- size: vector<int, int>
- maxNumAnimals: int
+ setType()
+ setMaxNumAnimals(): vector<int, int>
+ getType()
+ getMaxNumAnimals(): int
}
Animal <|-- Penguin
Animal <|-- Cat
Animal <|-- Otter
Animal "a 2..*" o-left-- "c 1..*" Cage
@enduml