-
Notifications
You must be signed in to change notification settings - Fork 10
/
text-editor.puml
59 lines (47 loc) · 1.63 KB
/
text-editor.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@startuml
left to right direction
state "textEditor" as textEditor {
state "bold" as textEditor.bold {
[*] --> textEditor.bold.off
state "on" as textEditor.bold.on {
textEditor.bold.on --> textEditor.bold.off : TOGGLE_BOLD
}
state "off" as textEditor.bold.off {
textEditor.bold.off --> textEditor.bold.on : TOGGLE_BOLD
}
}
state "underline" as textEditor.underline {
[*] --> textEditor.underline.off
state "on" as textEditor.underline.on {
textEditor.underline.on --> textEditor.underline.off : TOGGLE_UNDERLINE
}
state "off" as textEditor.underline.off {
textEditor.underline.off --> textEditor.underline.on : TOGGLE_UNDERLINE
}
}
state "italics" as textEditor.italics {
[*] --> textEditor.italics.off
state "on" as textEditor.italics.on {
textEditor.italics.on --> textEditor.italics.off : TOGGLE_ITALICS
}
state "off" as textEditor.italics.off {
textEditor.italics.off --> textEditor.italics.on : TOGGLE_ITALICS
}
}
state "list" as textEditor.list {
[*] --> textEditor.list.none
state "none" as textEditor.list.none {
textEditor.list.none --> textEditor.list.bullets : BULLETS
textEditor.list.none --> textEditor.list.numbers : NUMBERS
}
state "bullets" as textEditor.list.bullets {
textEditor.list.bullets --> textEditor.list.none : NONE
textEditor.list.bullets --> textEditor.list.numbers : NUMBERS
}
state "numbers" as textEditor.list.numbers {
textEditor.list.numbers --> textEditor.list.bullets : BULLETS
textEditor.list.numbers --> textEditor.list.none : NONE
}
}
}
@enduml