demo_doc/puml/superhero/state-ex.svg
2021-06-25 21:37:59 +08:00

834 lines
28 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="1179.1667px" preserveAspectRatio="none" style="width:395px;height:1179px;background:#00000000;" version="1.1" viewBox="0 0 395 1179" width="395.8333px" zoomAndPan="magnify"><defs><linearGradient id="guu5edgq3qbpw0" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#3E4A56"/><stop offset="100%" stop-color="#4E5D6C"/></linearGradient></defs><g><rect fill="url(#guu5edgq3qbpw0)" height="46.1528" rx="4.1667" ry="4.1667" style="stroke:#717D89;stroke-width:1.0416666666666667;" width="383.3333" x="2.0833" y="2.0833"/><text fill="#DF691A" font-family="Verdana" font-size="20.8333" lengthAdjust="spacing" textLength="356.25" x="15.625" y="33.4452">State Diagram - superhero theme</text><rect fill="#5CB85C" height="8.3333" style="stroke:none;stroke-width:1.0416666666666667;" width="83.3333" x="158.3333" y="141.9861"/><ellipse cx="200" cy="68.0278" fill="#5BC0DE" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="State2"><rect fill="#DF691A" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#E58748;stroke-width:1.5625;" width="75" x="107.2917" y="213.8611"/><line style="stroke:#E58748;stroke-width:1.5625;" x1="107.2917" x2="182.2917" y1="249.8861" y2="249.8861"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="43.75" x="122.9167" y="236.8449">State2</text></g><g id="State3"><rect fill="#DF691A" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#E58748;stroke-width:1.5625;" width="75" x="225" y="213.8611"/><line style="stroke:#E58748;stroke-width:1.5625;" x1="225" x2="300" y1="249.8861" y2="249.8861"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="43.75" x="240.625" y="236.8449">State3</text></g><rect fill="#5CB85C" height="8.3333" style="stroke:none;stroke-width:1.0416666666666667;" width="83.3333" x="159.375" y="360.7361"/><g id="State4"><rect fill="#DF691A" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#E58748;stroke-width:1.5625;" width="75" x="163.5417" y="432.6111"/><line style="stroke:#E58748;stroke-width:1.5625;" x1="163.5417" x2="238.5417" y1="468.6361" y2="468.6361"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="43.75" x="179.1667" y="455.5949">State4</text></g><rect fill="#DF691A" height="620.1416" rx="13.0208" ry="13.0208" style="stroke:#E58748;stroke-width:1.5625;" width="326.0417" x="38.0208" y="553.4444"/><rect height="577.8666" rx="13.0208" ry="13.0208" style="stroke:#00000000;stroke-width:1.0416666666666667;fill:none;" width="319.7917" x="41.1458" y="592.5944"/><line style="stroke:#E58748;stroke-width:1.5625;fill:none;" x1="38.0208" x2="364.0625" y1="589.4694" y2="589.4694"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="38.5417" x="181.7708" y="576.4282">Active</text><ellipse cx="59.8958" cy="630.6152" fill="#5BC0DE" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="Active.NumLockOff"><rect fill="#DF691A" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#E58748;stroke-width:1.5625;" width="108.3333" x="89.0625" y="601.9694"/><line style="stroke:#E58748;stroke-width:1.5625;" x1="89.0625" x2="197.3958" y1="637.9944" y2="637.9944"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="77.0833" x="104.6875" y="624.9532">NumLockOff</text></g><g id="Active.NumLockOn"><rect fill="#DF691A" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#E58748;stroke-width:1.5625;" width="108.3333" x="88.0208" y="723.8444"/><line style="stroke:#E58748;stroke-width:1.5625;" x1="88.0208" x2="196.3542" y1="759.8694" y2="759.8694"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="77.0833" x="103.6458" y="746.8282">NumLockOn</text></g><!--MD5=[f1e44e9cdf7ed6fd162579f896fb76ea]
link *start*Active to NumLockOff--><path d="M70.3125,630.6152 C74.6563,630.6152 78.9896,630.6152 83.3333,630.6152 " fill="none" id="*start*Active-to-NumLockOff" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="88.8229,630.6152,79.4479,626.4486,83.6146,630.6152,79.4479,634.7819,88.8229,630.6152" style="stroke:#DF691A;stroke-width:3.125;"/><!--MD5=[b6ef3c088f5474ecc81df30475e7d61b]
link NumLockOff to NumLockOn--><path d="M88.8125,657.3652 C76.2917,664.4277 65.5729,671.834 61.9792,678.0111 C55.9375,688.4173 55.9583,694.6673 61.9792,705.0944 C67.0625,713.9069 74.5417,721.1986 82.9063,727.1777 " fill="none" id="NumLockOff-to-NumLockOn" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="87.6354,730.3652,82.2012,721.6634,83.3202,727.4488,77.5349,728.5677,87.6354,730.3652" style="stroke:#DF691A;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="127.0833" x="68.2292" y="696.8282">EvNumLockPressed</text><!--MD5=[3bfddee0d82dc74c927fbeb3d3f2e6a3]
link NumLockOn to NumLockOff--><path d="M187.5417,723.6673 C193.1979,718.2298 198.1771,712.0319 201.5625,705.0944 C206.8438,694.2715 206.7917,688.8548 201.5625,678.0111 C198.9792,672.6569 195.4479,667.7402 191.3854,663.2611 " fill="none" id="NumLockOn-to-NumLockOff" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="187.5208,659.2715,191.0488,668.905,191.1438,663.0132,197.0356,663.1083,187.5208,659.2715" style="stroke:#DF691A;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="127.0833" x="211.9792" y="696.8282">EvNumLockPressed</text><line style="stroke:#E58748;stroke-width:1.5625;stroke-dasharray:8.0,10.0;" x1="43.2292" x2="356.7708" y1="785.9111" y2="785.9111"/><ellipse cx="59.8958" cy="821.8486" fill="#5BC0DE" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="Active.CONC87.CapsLockOff"><rect fill="#DF691A" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#E58748;stroke-width:1.5625;" width="112.5" x="89.0625" y="793.2027"/><line style="stroke:#E58748;stroke-width:1.5625;" x1="89.0625" x2="201.5625" y1="829.2277" y2="829.2277"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="81.25" x="104.6875" y="816.1865">CapsLockOff</text></g><g id="Active.CONC87.CapsLockOn"><rect fill="#DF691A" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#E58748;stroke-width:1.5625;" width="112.5" x="88.0208" y="915.0777"/><line style="stroke:#E58748;stroke-width:1.5625;" x1="88.0208" x2="200.5208" y1="951.1027" y2="951.1027"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="81.25" x="103.6458" y="938.0615">CapsLockOn</text></g><!--MD5=[70bdb58272bc1a7d9e9d21dfe0316432]
link *start*CONC87 to CapsLockOff--><path d="M70.5729,821.8486 C74.8854,821.8486 79.1979,821.8486 83.5104,821.8486 " fill="none" id="*start*CONC87-to-CapsLockOff" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="88.9688,821.8486,79.5938,817.6819,83.7604,821.8486,79.5938,826.0152,88.9688,821.8486" style="stroke:#DF691A;stroke-width:3.125;"/><!--MD5=[dc4675bd3056f3ef68701d9e8e02a3f3]
link CapsLockOff to CapsLockOn--><path d="M88.6458,848.9423 C76.1771,855.859 65.5833,863.109 61.9792,869.2444 C55.875,879.6194 55.9063,885.9319 61.9792,896.3277 C67.1458,905.1715 74.6875,912.4527 83.1354,918.4111 " fill="none" id="CapsLockOff-to-CapsLockOn" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="87.9167,921.5881,82.4274,912.9209,83.5831,918.6991,77.8049,919.8547,87.9167,921.5881" style="stroke:#DF691A;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="68.2292" y="888.0615">EvCapsLockPressed</text><!--MD5=[79e17b083e07746bd1a647600952cab6]
link CapsLockOn to CapsLockOff--><path d="M191.4896,914.8381 C197.2292,909.4423 202.2708,903.2652 205.7292,896.3277 C211.0938,885.5569 211.0521,880.0361 205.7292,869.2444 C203.0833,863.8902 199.5,858.984 195.375,854.5256 " fill="none" id="CapsLockOn-to-CapsLockOff" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="191.4479,850.5673,195.0727,860.1648,195.1084,854.2724,201.0008,854.3081,191.4479,850.5673" style="stroke:#DF691A;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="216.1458" y="888.0615">EvCapsLockPressed</text><line style="stroke:#E58748;stroke-width:1.5625;stroke-dasharray:8.0,10.0;" x1="43.2292" x2="356.7708" y1="977.1444" y2="977.1444"/><ellipse cx="59.8958" cy="1013.0819" fill="#5BC0DE" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="Active.CONC95.ScrollLockOff"><rect fill="#DF691A" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#E58748;stroke-width:1.5625;" width="113.5417" x="89.5833" y="984.436"/><line style="stroke:#E58748;stroke-width:1.5625;" x1="89.5833" x2="203.125" y1="1020.461" y2="1020.461"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="82.2917" x="105.2083" y="1007.4198">ScrollLockOff</text></g><g id="Active.CONC95.ScrollLockOn"><rect fill="#DF691A" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#E58748;stroke-width:1.5625;" width="113.5417" x="89.5833" y="1106.311"/><line style="stroke:#E58748;stroke-width:1.5625;" x1="89.5833" x2="203.125" y1="1142.336" y2="1142.336"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="82.2917" x="105.2083" y="1129.2948">ScrollLockOn</text></g><!--MD5=[8676698f49c1acec7e35e8e65e103748]
link *start*CONC95 to ScrollLockOff--><path d="M70.3646,1013.0819 C74.9167,1013.0819 79.4688,1013.0819 84.0208,1013.0819 " fill="none" id="*start*CONC95-to-ScrollLockOff" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="89.3646,1013.0819,79.9896,1008.9152,84.1563,1013.0819,79.9896,1017.2485,89.3646,1013.0819" style="stroke:#DF691A;stroke-width:3.125;"/><!--MD5=[da4e1e55b4a6de250eca2c82023085fa]
link ScrollLockOff to ScrollLockOn--><path d="M89.5833,1035.4777 C79.3854,1041.936 70.1042,1050.1444 64.0625,1060.4777 C57.9896,1070.8735 57.9896,1077.1652 64.0625,1087.561 C69.1563,1096.2798 76.5625,1103.4881 84.875,1109.4048 " fill="none" id="ScrollLockOff-to-ScrollLockOn" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="89.5833,1112.561,84.1147,1103.8808,85.2566,1109.6617,79.4758,1110.8036,89.5833,1112.561" style="stroke:#DF691A;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="70.3125" y="1079.2948">EvCapsLockPressed</text><!--MD5=[6ad2c621f2407b82317910f4deb17639]
link ScrollLockOn to ScrollLockOff--><path d="M193.5729,1106.0715 C199.3125,1100.6756 204.3542,1094.4985 207.8125,1087.561 C213.1771,1076.7902 213.1771,1071.2485 207.8125,1060.4777 C205.1667,1055.1652 201.5833,1050.3006 197.4792,1045.8944 " fill="none" id="ScrollLockOn-to-ScrollLockOff" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="193.5729,1041.9673,197.2364,1051.5501,197.2483,1045.6576,203.1409,1045.6695,193.5729,1041.9673" style="stroke:#DF691A;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="217.1875" y="1079.2948">EvCapsLockPressed</text><!--MD5=[242ad121cef04112e9b0ee8f25f52375]
link *start to fork_state--><path d="M200,78.7048 C200,93.5382 200,121.7569 200,136.1632 " fill="none" id="*start-to-fork_state" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="200,141.7153,204.1667,132.3403,200,136.5069,195.8333,132.3403,200,141.7153" style="stroke:#DF691A;stroke-width:3.125;"/><!--MD5=[44dd36eb382d4fffd186e8c447a61da0]
link fork_state to State2--><path d="M198.1667,150.3298 C192.8229,159.4548 176.8229,186.7673 163.7292,209.1319 " fill="none" id="fork_state-to-State2" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="160.9792,213.8298,169.3144,207.8485,163.6127,209.3364,162.1248,203.6348,160.9792,213.8298" style="stroke:#DF691A;stroke-width:3.125;"/><!--MD5=[43d4d70f9cd19f132a5eb1ce9d85c890]
link fork_state to State3--><path d="M202.0833,150.3298 C208.1563,159.4965 226.3958,186.9965 241.25,209.4132 " fill="none" id="fork_state-to-State3" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="244.1771,213.8298,242.4436,203.7181,241.288,209.4962,235.5099,208.3406,244.1771,213.8298" style="stroke:#DF691A;stroke-width:3.125;"/><!--MD5=[8cf5ef3a64654818495211b4c165bd62]
link State2 to join_state--><path d="M130.8333,271.3923 C124.0104,289.2153 119.3646,312.1736 130.2083,329.4861 C140.5729,346.0382 161.4271,354.8194 177.8333,359.3507 " fill="none" id="State2-to-join_state" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="183.2083,360.7257,175.1634,354.3593,178.1635,359.431,173.0918,362.4311,183.2083,360.7257" style="stroke:#DF691A;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="98.9583" x="136.4583" y="321.2199">some message</text><!--MD5=[183fde86cac17ac230b97143534e47db]
link State3 to join_state--><path d="M262.0833,271.2986 C260.6667,289.0903 256.625,312.0382 245.8333,329.4861 C237.7708,342.5278 222.8438,352.4653 212.4479,358.2257 " fill="none" id="State3-to-join_state" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="207.75,360.7048,217.9853,360.0039,212.3538,358.2693,214.0884,352.6378,207.75,360.7048" style="stroke:#DF691A;stroke-width:3.125;"/><!--MD5=[1e473d623208eebf6d5ebd6e9bc5a11d]
link join_state to State4--><path d="M201.0417,369.0798 C201.0417,378.1319 201.0417,405.0694 201.0417,427.3194 " fill="none" id="join_state-to-State4" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="201.0417,432.5798,205.2083,423.2048,201.0417,427.3715,196.875,423.2048,201.0417,432.5798" style="stroke:#DF691A;stroke-width:3.125;"/><!--MD5=[0a70b1a7cf318979336334b4227eefe4]
link State4 to Active--><path d="M201.0417,490.1111 C201.0417,504.934 201.0417,524.8507 201.0417,547.809 " fill="none" id="State4-to-Active" style="stroke:#DF691A;stroke-width:3.125;"/><polygon fill="#DF691A" points="201.0417,553.059,205.2083,543.684,201.0417,547.8507,196.875,543.684,201.0417,553.059" style="stroke:#DF691A;stroke-width:3.125;"/><!--MD5=[1482c9adbef380df609ff5389a38c550]
@startuml
!$THEME = "superhero"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$BLUE = "#DF691A"
!$INDIGO = "#6610f2"
!$PURPLE = "#6f42c1"
!$PINK = "#e83e8c"
!$RED = "#d9534f"
!$ORANGE = "#f0ad4e"
!$YELLOW = "#f0ad4e"
!$GREEN = "#5cb85c"
!$TEAL = "#20c997"
!$CYAN = "#5bc0de"
!$WHITE = "#FFF"
!$GRAY_LIGHT = "#222"
!$GRAY = "#868e96"
!$PRIMARY = "#DF691A"
!$SECONDARY = "#4E5D6C"
!$SUCCESS = "#5cb85c"
!$INFO = "#5bc0de"
!$WARNING = "#f0ad4e"
!$DANGER = "#d9534f"
!$LIGHT = "#abb6c2"
!$DARK = "#4E5D6C"
!$FGCOLOR = $WHITE
!$PRIMARY_DARK = "#e58748"
!$PRIMARY_LIGHT = "#b25415"
!$PRIMARY_TEXT = $WHITE
!$SECONDARY_DARK = "#717d89"
!$SECONDARY_LIGHT = "#3e4a56"
!$SECONDARY_TEXT = $WHITE
!$INFO_DARK = "#7ccde5"
!$INFO_LIGHT = "#499AB2"
!$INFO_TEXT = $WHITE
!$SUCCESS_DARK = "#4a934a"
!$SUCCESS_LIGHT = "#5F8F00"
!$SUCCESS_TEXT = $WHITE
!$WARNING_DARK = "#f3bd71"
!$WARNING_LIGHT = "#C08A3E"
!$WARNING_TEXT = $WHITE
!$DANGER_DARK = "#e17572"
!$DANGER_LIGHT = "#AE423F"
!$DANGER_TEXT = $WHITE
!$DARK_DARK = "#717d89"
!$DARK_LIGHT = "#3e4a56"
!$LIGHT_DARK = "#bcc5ce"
!$LIGHT_LIGHT = "#89929b"
!procedure $success($msg)
<font color=$SUCCESS><b>$msg
!endprocedure
!procedure $failure($msg)
<font color=$DANGER><b>$msg
!endprocedure
!procedure $warning($msg)
<font color=$WARNING><b>$msg
!endprocedure
!procedure $primary_scheme()
FontColor $PRIMARY_TEXT
BorderColor $PRIMARY_DARK
BackgroundColor $PRIMARY
!endprocedure
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor $DARK
skinparam stereotype {
CBackgroundColor $SECONDARY_LIGHT
CBorderColor $SECONDARY_DARK
ABackgroundColor $SUCCESS_LIGHT
ABorderColor $SUCCESS_DARK
IBackgroundColor $DANGER_LIGHT
IBorderColor $DANGER_DARK
EBackgroundColor $WARNING_LIGHT
EBorderColor $WARNING_DARK
NBackgroundColor $INFO_LIGHT
NBorderColor $INFO_DARK
}
skinparam title {
FontColor $PRIMARY
BorderColor $SECONDARY_DARK
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $SECONDARY_LIGHT-$SECONDARY
}
skinparam legend {
BackgroundColor $SECONDARY
BorderColor $SECONDARY_DARK
FontColor $LIGHT
}
!startsub swimlane
skinparam swimlane {
BorderColor $INFO
BorderThickness 2
TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY
TitleFontColor $PRIMARY
}
!endsub
!startsub activity
skinparam activity {
$primary_scheme()
BarColor $SUCCESS
StartColor $INFO
EndColor $INFO
DiamondBackgroundColor $SECONDARY_LIGHT
DiamondBorderColor $SECONDARY_DARK
DiamondFontColor $SECONDARY_TEXT
}
!endsub
!startsub participant
skinparam participant {
$primary_scheme()
BorderThickness 2
}
!endsub
!startsub actor
skinparam actor {
$primary_scheme()
}
!endsub
!startsub arrow
skinparam arrow {
Thickness 3
Color $PRIMARY
FontColor $FGCOLOR
}
!endsub
!startsub sequence
skinparam sequence {
BorderColor $PRIMARY
TitleFontColor $PRIMARY
BackgroundColor $BGCOLOR
StartColor $PRIMARY
EndColor $PRIMARY
BoxBackgroundColor $BGCOLOR
BoxBorderColor $DARK
BoxFontColor $DARk
LifeLineBorderColor $SECONDARY
LifeLineBorderThickness 2
LifeLineBackgroundColor $SECONDARY_DARK
GroupBackgroundColor $SECONDARY
GroupBodyBackgroundColor $BGCOLOR
GroupBorderColor $DARK
GroupFontColor $DARK
GroupHeaderFontColor $INFO
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $DARK
DividerBorderColor $DARK
DividerBorderThickness 2
DividerFontColor $LIGHT
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $DARK
ReferenceFontColor $DARK
ReferenceHeaderFontColor $INFO
ReferenceHeaderBackgroundColor $SECONDARY
}
!endsub
!startsub partition
skinparam partition {
BorderColor $PRIMARY
FontColor $PRIMARY
BackgroundColor $BGCOLOR
}
!endsub
!startsub collections
skinparam collections {
$primary_scheme()
}
!endsub
!startsub control
skinparam control {
$primary_scheme()
}
!endsub
!startsub entity
skinparam entity {
$primary_scheme()
}
!endsub
!startsub boundary
skinparam boundary {
$primary_scheme()
}
!endsub
!startsub agent
skinparam agent {
BackgroundColor $WARNING
BorderColor $WARNING_LIGHT
FontColor $DARK
}
!endsub
!startsub note
skinparam note {
BorderThickness 1
BackgroundColor $INFO
BorderColor $INFO_DARK
FontColor $WHITE
}
!endsub
!startsub artifact
skinparam artifact {
BackgroundColor $DARK
BorderColor $DARK_DARK
FontColor $LIGHT
}
!endsub
!startsub component
skinparam component {
$primary_scheme()
}
!endsub
!startsub interface
skinparam interface {
BackgroundColor $DANGER_DARK
BorderColor $DANGER
FontColor $DARK
}
!endsub
!startsub storage
skinparam storage {
BackgroundColor $WARNING
BorderColor $WARNING_DARK
FontColor $WARNING_TEXT
}
!endsub
!startsub node
skinparam node {
BackgroundColor $SECONDARY
BorderColor $LIGHT
FontColor $LIGHT
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor $LIGHT
FontColor $DARK
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
HeaderBackgroundColor $PRIMARY_LIGHT
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $DARK
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $SECONDARY_TEXT
AttributeFontSize 11
}
!endsub
!startsub usecase
skinparam usecase {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub rectangle
skinparam rectangle {
$primary_scheme()
BackgroundColor $SECONDARY_LIGHT
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub package
skinparam package {
BackgroundColor $SECONDARY
BorderColor $PRIMARY
FontColor $PRIMARY
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $SECONDARY_LIGHT
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $SECONDARY_LIGHT
BorderColor $INFO
FontColor $INFO
BorderThickness 2
}
!endsub
!startsub state
skinparam state {
$primary_scheme()
StartColor $INFO
EndColor $INFO
AttributeFontColor $SECONDARY_TEXT
AttributeFontSize 11
}
!endsub
!startsub queue
skinparam queue {
$primary_scheme()
}
!endsub
!startsub card
skinparam card {
BackgroundColor $INFO
BorderColor $INFO_DARK
FontColor $INFO_TEXT
}
!endsub
!startsub file
skinparam file {
BackgroundColor $SECONDARY_DARK
BorderColor $LIGHT
FontColor $LIGHT
}
!endsub
!startsub stack
skinparam stack {
$primary_scheme()
}
!endsub
!if %variable_exists("$THEME")
title State Diagram - $THEME theme
!else
title State Diagram
!endif
'skinparam BackgroundColor transparent
state fork_state <<fork>>
[*] - -> fork_state
fork_state - -> State2
fork_state - -> State3
state join_state <<join>>
State2 - -> join_state: some message
State3 - -> join_state
join_state - -> State4
State4 - -> Active
state Active {
[*] -> NumLockOff
NumLockOff - -> NumLockOn : EvNumLockPressed
NumLockOn - -> NumLockOff : EvNumLockPressed
- -
[*] -> CapsLockOff
CapsLockOff - -> CapsLockOn : EvCapsLockPressed
CapsLockOn - -> CapsLockOff : EvCapsLockPressed
- -
[*] -> ScrollLockOff
ScrollLockOff - -> ScrollLockOn : EvCapsLockPressed
ScrollLockOn - -> ScrollLockOff : EvCapsLockPressed
}
@enduml
@startuml
skinparam backgroundColor transparent
skinparam useBetaStyle false
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor #4E5D6C
skinparam stereotype {
CBackgroundColor #3e4a56
CBorderColor #717d89
ABackgroundColor #5F8F00
ABorderColor #4a934a
IBackgroundColor #AE423F
IBorderColor #e17572
EBackgroundColor #C08A3E
EBorderColor #f3bd71
NBackgroundColor #499AB2
NBorderColor #7ccde5
}
skinparam title {
FontColor #DF691A
BorderColor #717d89
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #3e4a56-#4E5D6C
}
skinparam legend {
BackgroundColor #4E5D6C
BorderColor #717d89
FontColor #abb6c2
}
skinparam swimlane {
BorderColor #5bc0de
BorderThickness 2
TitleBackgroundColor #3e4a56-#4E5D6C
TitleFontColor #DF691A
}
skinparam activity {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
BarColor #5cb85c
StartColor #5bc0de
EndColor #5bc0de
DiamondBackgroundColor #3e4a56
DiamondBorderColor #717d89
DiamondFontColor #FFF
}
skinparam participant {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
BorderThickness 2
}
skinparam actor {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
}
skinparam arrow {
Thickness 3
Color #DF691A
FontColor #FFF
}
skinparam sequence {
BorderColor #DF691A
TitleFontColor #DF691A
BackgroundColor transparent
StartColor #DF691A
EndColor #DF691A
BoxBackgroundColor transparent
BoxBorderColor #4E5D6C
BoxFontColor $DARk
LifeLineBorderColor #4E5D6C
LifeLineBorderThickness 2
LifeLineBackgroundColor #717d89
GroupBackgroundColor #4E5D6C
GroupBodyBackgroundColor transparent
GroupBorderColor #4E5D6C
GroupFontColor #4E5D6C
GroupHeaderFontColor #5bc0de
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #4E5D6C
DividerBorderColor #4E5D6C
DividerBorderThickness 2
DividerFontColor #abb6c2
ReferenceBackgroundColor transparent
ReferenceBorderColor #4E5D6C
ReferenceFontColor #4E5D6C
ReferenceHeaderFontColor #5bc0de
ReferenceHeaderBackgroundColor #4E5D6C
}
skinparam partition {
BorderColor #DF691A
FontColor #DF691A
BackgroundColor transparent
}
skinparam collections {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
}
skinparam control {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
}
skinparam entity {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
}
skinparam boundary {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
}
skinparam agent {
BackgroundColor #f0ad4e
BorderColor #C08A3E
FontColor #4E5D6C
}
skinparam note {
BorderThickness 1
BackgroundColor #5bc0de
BorderColor #7ccde5
FontColor #FFF
}
skinparam artifact {
BackgroundColor #4E5D6C
BorderColor #717d89
FontColor #abb6c2
}
skinparam component {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
}
skinparam interface {
BackgroundColor #e17572
BorderColor #d9534f
FontColor #4E5D6C
}
skinparam storage {
BackgroundColor #f0ad4e
BorderColor #f3bd71
FontColor #FFF
}
skinparam node {
BackgroundColor #4E5D6C
BorderColor #abb6c2
FontColor #abb6c2
}
skinparam cloud {
BackgroundColor transparent
BorderColor #abb6c2
FontColor #4E5D6C
}
skinparam database {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
}
skinparam class {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
HeaderBackgroundColor #b25415
StereotypeFontColor #4E5D6C
BorderThickness 1
AttributeFontColor #4E5D6C
AttributeFontSize 11
}
skinparam object {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
StereotypeFontColor #4E5D6C
BorderThickness 1
AttributeFontColor #FFF
AttributeFontSize 11
}
skinparam usecase {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
BorderThickness 2
StereotypeFontColor #DF691A
}
skinparam rectangle {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
BackgroundColor #3e4a56
BorderThickness 2
StereotypeFontColor #DF691A
}
skinparam package {
BackgroundColor #4E5D6C
BorderColor #DF691A
FontColor #DF691A
BorderThickness 2
}
skinparam folder {
BackgroundColor #3e4a56
BorderColor #f0ad4e
FontColor #f0ad4e
BorderThickness 2
}
skinparam frame {
BackgroundColor #3e4a56
BorderColor #5bc0de
FontColor #5bc0de
BorderThickness 2
}
skinparam state {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
StartColor #5bc0de
EndColor #5bc0de
AttributeFontColor #FFF
AttributeFontSize 11
}
skinparam queue {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
}
skinparam card {
BackgroundColor #5bc0de
BorderColor #7ccde5
FontColor #FFF
}
skinparam file {
BackgroundColor #717d89
BorderColor #abb6c2
FontColor #abb6c2
}
skinparam stack {
FontColor #FFF
BorderColor #e58748
BackgroundColor #DF691A
}
title State Diagram - superhero theme
state fork_state <<fork>>
[*] - -> fork_state
fork_state - -> State2
fork_state - -> State3
state join_state <<join>>
State2 - -> join_state: some message
State3 - -> join_state
join_state - -> State4
State4 - -> Active
state Active {
[*] -> NumLockOff
NumLockOff - -> NumLockOn : EvNumLockPressed
NumLockOn - -> NumLockOff : EvNumLockPressed
- -
[*] -> CapsLockOff
CapsLockOff - -> CapsLockOn : EvCapsLockPressed
CapsLockOn - -> CapsLockOff : EvCapsLockPressed
- -
[*] -> ScrollLockOff
ScrollLockOff - -> ScrollLockOn : EvCapsLockPressed
ScrollLockOn - -> ScrollLockOff : EvCapsLockPressed
}
@enduml
PlantUML version 1.2021.01(Mon Feb 01 23:55:08 PST 2021)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: en
Country: US
--></g></svg>