java -jar plantuml.jar -tsvg -filedir ~/hoge/
#!/bin/sh
java -jar plantuml.jar -gui -tsvg
ファイル名
ファイル名の拡張子を html などにしておくと、エディタの補完が効く
(例) xxx.pu.html
@startuml
...
@enduml
ClassHoge->ClassFuga: method(param)
ClassHoge->>ClassFuga: method(param)
ClassHoge<--ClassFuga: ReturnValue
ClassHoge<<--ClassFuga: ReturnValue
opt null
ClassHoge->Logger: warn(message)
end
loop not eof
ClassHoge->File: read()
end
participant SomeClass
activate SomeClass
deactivate SomeClass
destroy SomeClass
skinparam sequence {
ArrowColor Blue
ParticipantBorderColor DarkBlue
}
skinparam sequence {
ArrowColor #000000
LifeLineBorderColor #000000
LifeLineBackgroundColor #1695a3
ParticipantBorderColor #000000
ParticipantFontColor #0000ff
}
note over ClassHoge: xxx
note right of ClassHoge: xxx
note left of ClassHoge: xxx
note right of ClassHoge: xxx\nxxx
改行と組み合わせて使える
= xxx
== xxx
== xxx
* xxx
# xxx
[[https://xxx Label]]
[[https://xxx]]
title シーケンス図のタイトル
'コメント
/'
コメント
'/
== 見出し ==
Atom+PlantUMLで見た目もいい感じのシーケンス図を作成する
interface Hoge {
-privateMethod(param: String)
+publicMethod(param: Int)
}
class Fuga {
-privateField: String
+publicField: Int
+list: List<String>
-privateMethod(param: String): String
+publicMethod(param: Int): Int
+{static} staticMethod(param: String): String
+{abstract} abstractMethod(param: String): String
}
ClassHoge-ClassFuga
ClassHoge--ClassFuga
ClassHoge-->ClassFuga
ClassHoge "1" *-- "0..*" ClassFuga
ClassHoge *- ClassFuga
ClassHoge *-- ClassFuga
ClassHoge o- ClassFuga
ClassHoge..ClassFuga
ClassHoge<|.ClassFuga
ClassHoge<|..ClassFuga
skinparam class {
ArrowColor Blue
BackgroundColor LightYellow
BorderColor DarkBlue
}
ここから<color:red>赤文字</color>がここまで
</color>
は省略可能。明示的に終わりを示したい場合だけ指定すれば良い。skinparam defaultFontColor magenta
ここから<back:aqua>背景水色</back>がここまで
note right of hoge #aqua: 説明
ここから<b>ボールド</b>がここまで
ここから<color:red><b>赤文字</color>がここまで
</color>
があるので、</b>
は省略可能ここから<u>下線</u>
ここから<w>波下線</w>
ここから<s>取り消し線</s>
ここから<font:Courier>等幅フォント</font>
ここから<size:16>16ptフォント</size>
[["<URL>" 表示文字列 ]]
export PLANTUML_LIMIT_SIZE=8192
-Xmx1024m