共通コマンド

Explore these commands to create diagrams that are both functional and aesthetically pleasing, tailoring each element to your exact specifications.
WARNING
 This translation need to be updated. 
WARNING

コメント

単一行コメント

シングルクォート'で始まる行はコメントです。

@startuml
'Line comments use a single apostrophe
@enduml

ブロックコメント

ブロックコメントはC言語と同様のスタイルですが、*の代わりにシングルクォート'を使用します。 /'で開始して'/で終了する範囲に、複数行のコメントを記述することができます。

@startuml
/'
many lines comments
here
'/
@enduml

[Ref. QA-1353]

一つの行内でブロックコメントを使用することもできます:

[Ref. QA-3906 and QA-3910]

[Ref. GH-214]

WARNING
 This translation need to be updated. 
WARNING

拡大

scaleコマンドを使って、生成する画像を拡大できます。

小数または分数で拡大率を指定できます。 ピクセル単位でwidth(幅)またはheight(高さ)を指定することもできます。 幅と高さの両方を指定することもできます。この場合は、指定したサイズの内側に収まるように調整されます。

WARNING
 This translation need to be updated. 
WARNING

タイトル

titleキーワードを使用してタイトルを入れることができます。 タイトルでは\nを使用して改行することができます。

skinparam設定を使用してタイトルに枠線を付けることができます。

タイトル中でcreole書式を使用することもできます。

また、titleend titleキーワードを使用することで、複数行にわたってタイトルを記述することもできます。

キャプション

captionキーワードを使用して図の下部にキャプションを入れることができます。

フッタとヘッダ

footerheaderのコマンドを使って、生成された図にフッタとヘッダを追加することができます。

centerleftrightを使ってフッタ、ヘッダの表示位置を指定することもできます。

タイトルと同様に、複数行にわたってフッタまたはヘッダを定義することができます。

また、フッタとヘッダではHTMLタグを使用することもできます。

図の凡例

legendend legendを使って凡例を追加できます。

leftrighttopbottomcenterを使って、凡例の位置を指定することもできます。

付録:すべての図の例

アクティビティ図

アーキテクチャ図

クラス図

コンポーネント図、配置図、ユースケース図

ガントチャート

DONE
[(Header, footer) corrected on V1.2020.18]

オブジェクト図

マインドマップ

ネットワーク図(nwdiag)

シーケンス図

ステート図

タイミング図

Work Breakdown Structure (WBS)

DONE
[Corrected on V1.2020.17]

Wireframe (SALT)

DONE
[Corrected on V1.2020.18]

WARNING
 This translation need to be updated. 
WARNING

付録:すべての図でスタイルを指定した例

DONE

FYI:
FIXME
🚩 To be fix; Thanks

FIXME

ここでは、すべての図を使ってtitleheaderfootercaptionlegendを、デバッグ形式でテストしています:

<style>
title {
  HorizontalAlignment right
  FontSize 24
  FontColor blue
}

header {
  HorizontalAlignment center
  FontSize 26
  FontColor purple
}

footer {
  HorizontalAlignment left
  FontSize 28
  FontColor red
}

legend {
  FontSize 30
  BackGroundColor yellow
  Margin 30
  Padding 50
}

caption {
  FontSize 32
}
</style>

アクティビティ図

アーキテクチャ図

クラス図

コンポーネント図、配置図、ユースケース図

ガントチャート

オブジェクト図

マインドマップ

ネットワーク図(nwdiag)

シーケンス図

ステート図

タイミング図

Work Breakdown Structure (WBS)

Wireframe (SALT)

FIXME
Fix all (title, caption, legend, header, footer) for salt.
FIXME

WARNING
 This translation need to be updated. 
WARNING

メインフレーム

[Ref. QA-4019 and Issue#148]

付録: すべての図に対するメインフレームの例

アクティビティ図

アーキテクチャ図

FIXME
🚩 Cropped on the top and on the left
FIXME

クラス図

FIXME
🚩 Cropped on the top and on the left
FIXME

コンポーネント図、配置図、ユースケース図

FIXME
🚩 Cropped on the top and on the left
FIXME

ガントチャート

FIXME
🚩 Cropped on the top and on the left
FIXME

オブジェクト図

FIXME
🚩 Cropped on the top!
FIXME

マインドマップ

ネットワーク図(nwdiag)

FIXME
🚩 Cropped on the top!
FIXME

シーケンス図

ステート図

FIXME
🚩 Cropped on the top and on the left
FIXME

タイミング図

Work Breakdown Structure (WBS)

ワイヤフレーム (SALT)

WARNING
 This translation need to be updated. 
WARNING

付録: すべての図に対するタイトル、ヘッダ、フッタ、キャプション、凡例、メインフレームの例

アクティビティ図

アーキテクチャ図

クラス図

コンポーネント図、配置図、ユースケース図

ガントチャート

オブジェクト図

マインドマップ

ネットワーク図(nwdiag)

シーケンス図

ステート図

タイミング図

Work Breakdown Structure (WBS)

ワイヤフレーム (SALT)

WARNING
 This translation need to be updated. 
WARNING