demo_doc/puml/spacelab/state-ex.svg

836 lines
29 KiB
XML
Raw Normal View History

2021-06-25 21:37:59 +08:00
<?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:379px;height:1179px;background:#00000000;" version="1.1" viewBox="0 0 379 1179" width="379.1667px" zoomAndPan="magnify"><defs><linearGradient id="gssldlrtw9c400" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#B8B8B8"/><stop offset="100%" stop-color="#999999"/></linearGradient><linearGradient id="gssldlrtw9c401" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#7C9AB9"/><stop offset="100%" stop-color="#304D6D"/></linearGradient></defs><g><rect fill="url(#gssldlrtw9c400)" height="46.1528" rx="4.1667" ry="4.1667" style="stroke:#6B6B6B;stroke-width:1.0416666666666667;" width="366.6667" x="2.0833" y="2.0833"/><text fill="#304D6D" font-family="Verdana" font-size="20.8333" lengthAdjust="spacing" textLength="339.5833" x="15.625" y="33.4452">State Diagram - spacelab theme</text><rect fill="#3CB521" height="8.3333" style="stroke:none;stroke-width:1.0416666666666667;" width="83.3333" x="150" y="141.9861"/><ellipse cx="191.6667" cy="68.0278" fill="#3399F3" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="State2"><rect fill="url(#gssldlrtw9c401)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#304D6D;stroke-width:1.5625;" width="75" x="98.9583" y="213.8611"/><line style="stroke:#304D6D;stroke-width:1.5625;" x1="98.9583" x2="173.9583" y1="249.8861" y2="249.8861"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="43.75" x="114.5833" y="236.8449">State2</text></g><g id="State3"><rect fill="url(#gssldlrtw9c401)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#304D6D;stroke-width:1.5625;" width="75" x="216.6667" y="213.8611"/><line style="stroke:#304D6D;stroke-width:1.5625;" x1="216.6667" x2="291.6667" y1="249.8861" y2="249.8861"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="43.75" x="232.2917" y="236.8449">State3</text></g><rect fill="#3CB521" height="8.3333" style="stroke:none;stroke-width:1.0416666666666667;" width="83.3333" x="151.0417" y="360.7361"/><g id="State4"><rect fill="url(#gssldlrtw9c401)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#304D6D;stroke-width:1.5625;" width="75" x="155.2083" y="432.6111"/><line style="stroke:#304D6D;stroke-width:1.5625;" x1="155.2083" x2="230.2083" y1="468.6361" y2="468.6361"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="43.75" x="170.8333" y="455.5949">State4</text></g><rect fill="url(#gssldlrtw9c401)" height="620.1416" rx="13.0208" ry="13.0208" style="stroke:#304D6D;stroke-width:1.5625;" width="326.0417" x="29.6875" 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="32.8125" y="592.5944"/><line style="stroke:#304D6D;stroke-width:1.5625;fill:none;" x1="29.6875" x2="355.7292" y1="589.4694" y2="589.4694"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="38.5417" x="173.4375" y="576.4282">Active</text><ellipse cx="51.5625" cy="630.6152" fill="#3399F3" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="Active.NumLockOff"><rect fill="url(#gssldlrtw9c401)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#304D6D;stroke-width:1.5625;" width="108.3333" x="80.7292" y="601.9694"/><line style="stroke:#304D6D;stroke-width:1.5625;" x1="80.7292" x2="189.0625" y1="637.9944" y2="637.9944"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="77.0833" x="96.3542" y="624.9532">NumLockOff</text></g><g id="Active.NumLockOn"><rect fill="url(#gssldlrtw9c401)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#304D6D;stroke-width:1.5625;" width="108.3333" x="79.6875" y="7
link *start*Active to NumLockOff--><path d="M61.9792,630.6152 C66.3229,630.6152 70.6563,630.6152 75,630.6152 " fill="none" id="*start*Active-to-NumLockOff" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="80.4896,630.6152,71.1146,626.4486,75.2813,630.6152,71.1146,634.7819,80.4896,630.6152" style="stroke:#446E9B;stroke-width:3.125;"/><!--MD5=[b6ef3c088f5474ecc81df30475e7d61b]
link NumLockOff to NumLockOn--><path d="M80.4792,657.3652 C67.9583,664.4277 57.2396,671.834 53.6458,678.0111 C47.6042,688.4173 47.625,694.6673 53.6458,705.0944 C58.7292,713.9069 66.2083,721.1986 74.5729,727.1777 " fill="none" id="NumLockOff-to-NumLockOn" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="79.3021,730.3652,73.8679,721.6634,74.9869,727.4488,69.2016,728.5677,79.3021,730.3652" style="stroke:#446E9B;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="127.0833" x="59.8958" y="696.8282">EvNumLockPressed</text><!--MD5=[3bfddee0d82dc74c927fbeb3d3f2e6a3]
link NumLockOn to NumLockOff--><path d="M179.2083,723.6673 C184.8646,718.2298 189.8438,712.0319 193.2292,705.0944 C198.5104,694.2715 198.4583,688.8548 193.2292,678.0111 C190.6458,672.6569 187.1146,667.7402 183.0521,663.2611 " fill="none" id="NumLockOn-to-NumLockOff" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="179.1875,659.2715,182.7154,668.905,182.8105,663.0132,188.7023,663.1083,179.1875,659.2715" style="stroke:#446E9B;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="127.0833" x="203.6458" y="696.8282">EvNumLockPressed</text><line style="stroke:#304D6D;stroke-width:1.5625;stroke-dasharray:8.0,10.0;" x1="34.8958" x2="348.4375" y1="785.9111" y2="785.9111"/><ellipse cx="51.5625" cy="821.8486" fill="#3399F3" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="Active.CONC87.CapsLockOff"><rect fill="url(#gssldlrtw9c401)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#304D6D;stroke-width:1.5625;" width="112.5" x="80.7292" y="793.2027"/><line style="stroke:#304D6D;stroke-width:1.5625;" x1="80.7292" x2="193.2292" y1="829.2277" y2="829.2277"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="81.25" x="96.3542" y="816.1865">CapsLockOff</text></g><g id="Active.CONC87.CapsLockOn"><rect fill="url(#gssldlrtw9c401)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#304D6D;stroke-width:1.5625;" width="112.5" x="79.6875" y="915.0777"/><line style="stroke:#304D6D;stroke-width:1.5625;" x1="79.6875" x2="192.1875" y1="951.1027" y2="951.1027"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="81.25" x="95.3125" y="938.0615">CapsLockOn</text></g><!--MD5=[70bdb58272bc1a7d9e9d21dfe0316432]
link *start*CONC87 to CapsLockOff--><path d="M62.2396,821.8486 C66.5521,821.8486 70.8646,821.8486 75.1771,821.8486 " fill="none" id="*start*CONC87-to-CapsLockOff" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="80.6354,821.8486,71.2604,817.6819,75.4271,821.8486,71.2604,826.0152,80.6354,821.8486" style="stroke:#446E9B;stroke-width:3.125;"/><!--MD5=[dc4675bd3056f3ef68701d9e8e02a3f3]
link CapsLockOff to CapsLockOn--><path d="M80.3125,848.9423 C67.8438,855.859 57.25,863.109 53.6458,869.2444 C47.5417,879.6194 47.5729,885.9319 53.6458,896.3277 C58.8125,905.1715 66.3542,912.4527 74.8021,918.4111 " fill="none" id="CapsLockOff-to-CapsLockOn" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="79.5833,921.5881,74.0941,912.9209,75.2497,918.6991,69.4716,919.8547,79.5833,921.5881" style="stroke:#446E9B;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="59.8958" y="888.0615">EvCapsLockPressed</text><!--MD5=[79e17b083e07746bd1a647600952cab6]
link CapsLockOn to CapsLockOff--><path d="M183.1563,914.8381 C188.8958,909.4423 193.9375,903.2652 197.3958,896.3277 C202.7604,885.5569 202.7188,880.0361 197.3958,869.2444 C194.75,863.8902 191.1667,858.984 187.0417,854.5256 " fill="none" id="CapsLockOn-to-CapsLockOff" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="183.1146,850.5673,186.7393,860.1648,186.775,854.2724,192.6675,854.3081,183.1146,850.5673" style="stroke:#446E9B;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="207.8125" y="888.0615">EvCapsLockPressed</text><line style="stroke:#304D6D;stroke-width:1.5625;stroke-dasharray:8.0,10.0;" x1="34.8958" x2="348.4375" y1="977.1444" y2="977.1444"/><ellipse cx="51.5625" cy="1013.0819" fill="#3399F3" rx="10.4167" ry="10.4167" style="stroke:none;stroke-width:1.0416666666666667;"/><g id="Active.CONC95.ScrollLockOff"><rect fill="url(#gssldlrtw9c401)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#304D6D;stroke-width:1.5625;" width="113.5417" x="81.25" y="984.436"/><line style="stroke:#304D6D;stroke-width:1.5625;" x1="81.25" x2="194.7917" y1="1020.461" y2="1020.461"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="82.2917" x="96.875" y="1007.4198">ScrollLockOff</text></g><g id="Active.CONC95.ScrollLockOn"><rect fill="url(#gssldlrtw9c401)" height="56.8583" rx="13.0208" ry="13.0208" style="stroke:#304D6D;stroke-width:1.5625;" width="113.5417" x="81.25" y="1106.311"/><line style="stroke:#304D6D;stroke-width:1.5625;" x1="81.25" x2="194.7917" y1="1142.336" y2="1142.336"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="82.2917" x="96.875" y="1129.2948">ScrollLockOn</text></g><!--MD5=[8676698f49c1acec7e35e8e65e103748]
link *start*CONC95 to ScrollLockOff--><path d="M62.0313,1013.0819 C66.5833,1013.0819 71.1354,1013.0819 75.6875,1013.0819 " fill="none" id="*start*CONC95-to-ScrollLockOff" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="81.0313,1013.0819,71.6563,1008.9152,75.8229,1013.0819,71.6563,1017.2485,81.0313,1013.0819" style="stroke:#446E9B;stroke-width:3.125;"/><!--MD5=[da4e1e55b4a6de250eca2c82023085fa]
link ScrollLockOff to ScrollLockOn--><path d="M81.25,1035.4777 C71.0521,1041.936 61.7708,1050.1444 55.7292,1060.4777 C49.6563,1070.8735 49.6563,1077.1652 55.7292,1087.561 C60.8229,1096.2798 68.2292,1103.4881 76.5417,1109.4048 " fill="none" id="ScrollLockOff-to-ScrollLockOn" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="81.25,1112.561,75.7814,1103.8808,76.9233,1109.6617,71.1424,1110.8036,81.25,1112.561" style="stroke:#446E9B;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="61.9792" y="1079.2948">EvCapsLockPressed</text><!--MD5=[6ad2c621f2407b82317910f4deb17639]
link ScrollLockOn to ScrollLockOff--><path d="M185.2396,1106.0715 C190.9792,1100.6756 196.0208,1094.4985 199.4792,1087.561 C204.8438,1076.7902 204.8438,1071.2485 199.4792,1060.4777 C196.8333,1055.1652 193.25,1050.3006 189.1458,1045.8944 " fill="none" id="ScrollLockOn-to-ScrollLockOff" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="185.2396,1041.9673,188.9031,1051.5501,188.915,1045.6576,194.8075,1045.6695,185.2396,1041.9673" style="stroke:#446E9B;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="131.25" x="208.8542" y="1079.2948">EvCapsLockPressed</text><!--MD5=[242ad121cef04112e9b0ee8f25f52375]
link *start to fork_state--><path d="M191.6667,78.7048 C191.6667,93.5382 191.6667,121.7569 191.6667,136.1632 " fill="none" id="*start-to-fork_state" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="191.6667,141.7153,195.8333,132.3403,191.6667,136.5069,187.5,132.3403,191.6667,141.7153" style="stroke:#446E9B;stroke-width:3.125;"/><!--MD5=[44dd36eb382d4fffd186e8c447a61da0]
link fork_state to State2--><path d="M189.8333,150.3298 C184.4896,159.4548 168.4896,186.7673 155.3958,209.1319 " fill="none" id="fork_state-to-State2" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="152.6458,213.8298,160.981,207.8485,155.2794,209.3364,153.7915,203.6348,152.6458,213.8298" style="stroke:#446E9B;stroke-width:3.125;"/><!--MD5=[43d4d70f9cd19f132a5eb1ce9d85c890]
link fork_state to State3--><path d="M193.75,150.3298 C199.8229,159.4965 218.0625,186.9965 232.9167,209.4132 " fill="none" id="fork_state-to-State3" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="235.8438,213.8298,234.1103,203.7181,232.9547,209.4962,227.1766,208.3406,235.8438,213.8298" style="stroke:#446E9B;stroke-width:3.125;"/><!--MD5=[8cf5ef3a64654818495211b4c165bd62]
link State2 to join_state--><path d="M122.5,271.3923 C115.6771,289.2153 111.0313,312.1736 121.875,329.4861 C132.2396,346.0382 153.0938,354.8194 169.5,359.3507 " fill="none" id="State2-to-join_state" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="174.875,360.7257,166.83,354.3593,169.8302,359.431,164.7585,362.4311,174.875,360.7257" style="stroke:#446E9B;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="98.9583" x="128.125" y="321.2199">some message</text><!--MD5=[183fde86cac17ac230b97143534e47db]
link State3 to join_state--><path d="M253.75,271.2986 C252.3333,289.0903 248.2917,312.0382 237.5,329.4861 C229.4375,342.5278 214.5104,352.4653 204.1146,358.2257 " fill="none" id="State3-to-join_state" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="199.4167,360.7048,209.6519,360.0039,204.0205,358.2693,205.755,352.6378,199.4167,360.7048" style="stroke:#446E9B;stroke-width:3.125;"/><!--MD5=[1e473d623208eebf6d5ebd6e9bc5a11d]
link join_state to State4--><path d="M192.7083,369.0798 C192.7083,378.1319 192.7083,405.0694 192.7083,427.3194 " fill="none" id="join_state-to-State4" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="192.7083,432.5798,196.875,423.2048,192.7083,427.3715,188.5417,423.2048,192.7083,432.5798" style="stroke:#446E9B;stroke-width:3.125;"/><!--MD5=[0a70b1a7cf318979336334b4227eefe4]
link State4 to Active--><path d="M192.7083,490.1111 C192.7083,504.934 192.7083,524.8507 192.7083,547.809 " fill="none" id="State4-to-Active" style="stroke:#446E9B;stroke-width:3.125;"/><polygon fill="#446E9B" points="192.7083,553.059,196.875,543.684,192.7083,547.8507,188.5417,543.684,192.7083,553.059" style="stroke:#446E9B;stroke-width:3.125;"/><!--MD5=[a61bdac3f4c39126ba5f4826275ece41]
@startuml
!$THEME = "spacelab"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$BLUE = "#446e9b"
!$INDIGO = "#6610f2"
!$PURPLE = "#6f42c1"
!$PINK = "#e83e8c"
!$RED = "#cd0200"
!$ORANGE = "#fd7e14"
!$YELLOW = "#d47500"
!$GREEN = "#3cb521"
!$TEAL = "#20c997"
!$CYAN = "#3399f3"
!$WHITE = "#ffffff"
!$GRAY = "#777777"
!$GRAYDARK = "#333333"
!$PRIMARY = "#446e9b"
!$SECONDARY = "#999999"
!$SUCCESS = "#3cb521"
!$INFO = "#3399f3"
!$WARNING = "#d47500"
!$DANGER = "#cd0200"
!$LIGHT = "#eeeeee"
!$DARK = "#333333"
!$FGCOLOR = $WHITE
!$PRIMARY_DARK = "#304d6d"
!$PRIMARY_LIGHT = "#7c9ab9"
!$PRIMARY_TEXT = $WHITE
!$SECONDARY_DARK = "#6b6b6b"
!$SECONDARY_LIGHT = "#b8b8b8"
!$SECONDARY_TEXT = $WHITE
!$INFO_DARK = "#246baa"
!$INFO_LIGHT = "#70b8f7"
!$INFO_TEXT = $WHITE
!$SUCCESS_DARK = "#32a243"
!$SUCCESS_LIGHT = "#4cbc5c"
!$SUCCESS_TEXT = $WHITE
!$WARNING_DARK = "#945200"
!$WARNING_LIGHT = "#e19e4d"
!$WARNING_TEXT = $WHITE
!$DANGER_DARK = "#900100"
!$DANGER_LIGHT = "#dc4e4d"
!$DANGER_TEXT = $WHITE
!$DARK_DARK = "#242424"
!$DARK_LIGHT = "#707070"
!$LIGHT_DARK = "#a7a7a7"
!$LIGHT_LIGHT = "#f3f3f3"
!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_LIGHT-$PRIMARY_DARK
!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_DARK
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_DARK
}
!endsub
!startsub activity
skinparam activity {
$primary_scheme()
BarColor $SUCCESS
StartColor $INFO
EndColor $INFO
DiamondBackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK
DiamondBorderColor $SECONDARY_DARK
DiamondFontColor $SECONDARY_TEXT
}
!endsub
!startsub participant
skinparam participant {
$primary_scheme()
ParticipantBorderThickness 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-$SECONDARY_DARK
GroupBorderColor $DARK
GroupFontColor $DARK
GroupHeaderFontColor $INFO
GroupBackgroundColor $SECONDARY_DARK-$SECONDARY_DARK
GroupBodyBackgroundColor $BGCOLOR
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $DARK_LIGHT-$DARK_DARK
DividerBorderColor $DARK
DividerBorderThickness 2
DividerFontColor $LIGHT
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $DARK
ReferenceFontColor $DARK
ReferenceHeaderFontColor $INFO
ReferenceHeaderBackgroundColor $SECONDARY_DARK-$SECONDARY_DARK
}
!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_LIGHT-$INFO_DARK
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 #F2FCFE
FontColor $DARK
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
FontColor $WHITE
HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY
StereotypeFontColor $LIGHT
BorderThickness 1
AttributeFontColor $LIGHT
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-$SECONDARY_DARK
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub package
skinparam package {
BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK
BorderColor $PRIMARY
FontColor $PRIMARY
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $SECONDARY_LIGHT-$SECONDARY_DARK
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_LIGHT-$INFO_DARK
BorderColor $INFO_DARK
FontColor $INFO_TEXT
}
!endsub
!startsub file
skinparam file {
BackgroundColor $SECONDARY_DARK-$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 #333333
skinparam stereotype {
CBackgroundColor #b8b8b8
CBorderColor #6b6b6b
ABackgroundColor #4cbc5c
ABorderColor #32a243
IBackgroundColor #dc4e4d
IBorderColor #900100
EBackgroundColor #e19e4d
EBorderColor #945200
NBackgroundColor #70b8f7
NBorderColor #246baa
}
skinparam title {
FontColor #304d6d
BorderColor #6b6b6b
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #b8b8b8-#999999
}
skinparam legend {
BackgroundColor #999999
BorderColor #6b6b6b
FontColor #eeeeee
}
skinparam swimlane {
BorderColor #3399f3
BorderThickness 2
TitleBackgroundColor #b8b8b8-#999999
TitleFontColor #304d6d
}
skinparam activity {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
BarColor #3cb521
StartColor #3399f3
EndColor #3399f3
DiamondBackgroundColor #b8b8b8-#6b6b6b
DiamondBorderColor #6b6b6b
DiamondFontColor #ffffff
}
skinparam participant {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
}
skinparam arrow {
Thickness 3
Color #446e9b
FontColor #ffffff
}
skinparam sequence {
BorderColor #446e9b
TitleFontColor #446e9b
BackgroundColor transparent
StartColor #446e9b
EndColor #446e9b
BoxBackgroundColor transparent
BoxBorderColor #333333
BoxFontColor $DARk
LifeLineBorderColor #999999
LifeLineBorderThickness 2
LifeLineBackgroundColor #6b6b6b-#6b6b6b
GroupBorderColor #333333
GroupFontColor #333333
GroupHeaderFontColor #3399f3
GroupBackgroundColor #6b6b6b-#6b6b6b
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #707070-#242424
DividerBorderColor #333333
DividerBorderThickness 2
DividerFontColor #eeeeee
ReferenceBackgroundColor transparent
ReferenceBorderColor #333333
ReferenceFontColor #333333
ReferenceHeaderFontColor #3399f3
ReferenceHeaderBackgroundColor #6b6b6b-#6b6b6b
}
skinparam partition {
BorderColor #446e9b
FontColor #446e9b
BackgroundColor transparent
}
skinparam collections {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
}
skinparam control {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
}
skinparam entity {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
}
skinparam boundary {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
}
skinparam agent {
BackgroundColor #d47500
BorderColor #e19e4d
FontColor #333333
}
skinparam note {
BorderThickness 1
BackgroundColor #70b8f7-#246baa
BorderColor #246baa
FontColor #ffffff
}
skinparam artifact {
BackgroundColor #333333
BorderColor #242424
FontColor #eeeeee
}
skinparam component {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
}
skinparam interface {
BackgroundColor #900100
BorderColor #cd0200
FontColor #333333
}
skinparam storage {
BackgroundColor #d47500
BorderColor #945200
FontColor #ffffff
}
skinparam node {
BackgroundColor #999999
BorderColor #eeeeee
FontColor #eeeeee
}
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor #333333
}
skinparam database {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
}
skinparam class {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
FontColor #ffffff
HeaderBackgroundColor #7c9ab9-#446e9b
StereotypeFontColor #eeeeee
BorderThickness 1
AttributeFontColor #eeeeee
AttributeFontSize 11
}
skinparam object {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
StereotypeFontColor #333333
BorderThickness 1
AttributeFontColor #ffffff
AttributeFontSize 11
}
skinparam usecase {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
BorderThickness 2
StereotypeFontColor #446e9b
}
skinparam rectangle {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
BackgroundColor #b8b8b8-#6b6b6b
BorderThickness 2
StereotypeFontColor #446e9b
}
skinparam package {
BackgroundColor #b8b8b8-#6b6b6b
BorderColor #446e9b
FontColor #446e9b
BorderThickness 2
}
skinparam folder {
BackgroundColor #b8b8b8-#6b6b6b
BorderColor #d47500
FontColor #d47500
BorderThickness 2
}
skinparam frame {
BackgroundColor #b8b8b8-#6b6b6b
BorderColor #3399f3
FontColor #3399f3
BorderThickness 2
}
skinparam state {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
StartColor #3399f3
EndColor #3399f3
AttributeFontColor #ffffff
AttributeFontSize 11
}
skinparam queue {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
}
skinparam card {
BackgroundColor #70b8f7-#246baa
BorderColor #246baa
FontColor #ffffff
}
skinparam file {
BackgroundColor #6b6b6b-#6b6b6b
BorderColor #eeeeee
FontColor #eeeeee
}
skinparam stack {
FontColor #ffffff
BorderColor #304d6d
BackgroundColor #7c9ab9-#304d6d
}
title State Diagram - spacelab 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>