상태 다이어그램
Using [PlantUML](https://plantuml.com/) to create state diagrams offers several advantages:- Text-Based Language: Quickly define and visualize the states and transitions without the hassle of manual drawing.
- Efficiency and Consistency: Ensure streamlined diagram creation and easy version control.
- Versatility: Integrate with various documentation platforms and support multiple output formats.
- Open-Source & Community Support: Backed by a [strong community](https://forum.plantuml.net/) that continuously contributes to its enhancements and offers invaluable resources.
WARNING
This translation need to be updated. WARNING
간단한 상태
[*]을 사용해서 시작점과 종료점을 그린다.
-->를 사용해서 화살표를 그린다.
Change state rendering
You can use hide empty description to render state as simple box.
상태 수정
물론 상태는 수정될 수 있다. state
키워드와 브라켓을 정의해야 한다.
WARNING
This translation need to be updated. WARNING
긴 이름
state 키워드를 사용하면 상태들을 길게 기술할 수 있다.
History [[H], [H*]]
You can use [H] for the history and [H*] for the deep history of a substate.
Fork [fork, join]
You can also fork and join using the <<fork>> and <<join>> stereotypes.
Concurrent state [--, ||]
You can define concurrent state into a composite state using either --
or || symbol as separator.
Horizontal separator --
Vertical separator ||
Conditional [choice]
The stereotype <<choice>> can be used to use conditional state.
Stereotypes full example [start, choice, fork, join, end, history, history*]
Start, choice, fork, join, end
History, history*
Minimal example with all stereotypes
Point [entryPoint, exitPoint]
You can add point with <<entryPoint>> and <<exitPoint>> stereotypes:
Pin [inputPin, outputPin]
You can add pin with <<inputPin>> and <<outputPin>> stereotypes:
Expansion [expansionInput, expansionOutput]
You can add expansion with <<expansionInput>> and <<expansionOutput>> stereotypes:
Arrow direction
You can use -> for horizontal arrows. It is possible to
force arrow's direction using the following syntax:
-down->or-->-right->or->(default arrow)-left->-up->
-d- instead of
-down-)
or the two first characters (-do-).
Please note that you should not abuse this functionality : Graphviz gives usually good results without tweaking.
Change line color and style
You can change line color and/or line style.
Change head or tail of arrow line
Note
You can also define notes using
note left of, note right of, note top of, note bottom of
keywords.
You can also define notes on several lines.
Note on link
You can put notes on state-transition or link, with note on link keyword.
More in notes
You can put notes on composite states.
Inline color
Skinparam
You can use the skinparam command to change colors and fonts for the drawing.
You can use this command :
- In the diagram definition, like any other commands,
- In an included file,
- In a configuration file, provided in the command line or the Ant task.
Test of all specific skinparam to State Diagrams
Changing style
You can change style.
Change state color and style (inline style)
You can change the color or style of individual state using the following notation:
#color ##[style]color
#color), then line style and line color (##[style]color ).
#color;line:color;line.[bold|dashed|dotted];text:color
FIXME
🚩
text:color seems not to be taken into account
FIXME
Alias
With State you can use alias, like: