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

795 lines
18 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="537.5px" preserveAspectRatio="none" style="width:421px;height:537px;background:#00000000;" version="1.1" viewBox="0 0 421 537" width="421.875px" zoomAndPan="magnify"><defs><linearGradient id="gcxfh16lkfc6r0" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#DBDBDB"/><stop offset="100%" stop-color="#D2D2D2"/></linearGradient><linearGradient id="gcxfh16lkfc6r1" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#F3F3F3"/><stop offset="100%" stop-color="#E2E2E2"/></linearGradient></defs><g><rect fill="url(#gcxfh16lkfc6r0)" height="56.5694" rx="4.1667" ry="4.1667" style="stroke:#D2D2D2;stroke-width:1.0416666666666667;" width="409.375" x="2.0833" y="2.0833"/><text fill="#FFFFFF" font-family="Verdana" font-size="20.8333" lengthAdjust="spacing" textLength="371.875" x="20.8333" y="38.6536">Usecase Diagram - lightgray theme</text><!--MD5=[111002b242a260edbcaabc3e471064d0]
cluster checkout--><rect height="392.7083" rx="7.8125" ry="7.8125" style="stroke:#F3F3F3;stroke-width:2.0833333333333335;fill:none;" width="168.75" x="144.2708" y="69.0694"/><text fill="#336699" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacing" textLength="61.4583" x="197.9167" y="94.1366">checkout</text><ellipse cx="228.8806" cy="284.6471" fill="url(#gcxfh16lkfc6r1)" rx="67.9431" ry="28.5985" style="stroke:#F3F3F3;stroke-width:2.0833333333333335;"/><text fill="#336699" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="58.3333" x="199.714" y="287.5351">checkout</text><ellipse cx="228.6649" cy="153.3971" fill="url(#gcxfh16lkfc6r1)" rx="67.2066" ry="28.5985" style="stroke:#F3F3F3;stroke-width:2.0833333333333335;"/><text fill="#336699" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="57.2917" x="200.0191" y="156.2851">payment</text><ellipse cx="228.8743" cy="415.8971" fill="url(#gcxfh16lkfc6r1)" rx="46.5826" ry="28.5985" style="stroke:#F3F3F3;stroke-width:2.0833333333333335;"/><text fill="#336699" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="28.125" x="214.8118" y="418.7851">help</text><!--MD5=[92848cbaf65985a669855153c5362c37]
entity customer--><ellipse cx="54.6875" cy="244.0694" fill="url(#gcxfh16lkfc6r1)" rx="8.3333" ry="8.3333" style="stroke:#F3F3F3;stroke-width:1.5625;"/><path d="M54.6875,252.4028 L54.6875,280.5278 M41.1458,260.7361 L68.2292,260.7361 M54.6875,280.5278 L41.1458,296.1528 M54.6875,280.5278 L68.2292,296.1528 " fill="none" style="stroke:#F3F3F3;stroke-width:1.5625;"/><text fill="#336699" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="60.4167" x="24.4792" y="321.7407">customer</text><!--MD5=[ebeabf449828f4e0b33bbb47961e644b]
entity clerk--><ellipse cx="387.5" cy="244.0694" fill="url(#gcxfh16lkfc6r1)" rx="8.3333" ry="8.3333" style="stroke:#F3F3F3;stroke-width:1.5625;"/><path d="M387.5,252.4028 L387.5,280.5278 M373.9583,260.7361 L401.0417,260.7361 M387.5,280.5278 L373.9583,296.1528 M387.5,280.5278 L401.0417,296.1528 " fill="none" style="stroke:#F3F3F3;stroke-width:1.5625;"/><text fill="#336699" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="30.2083" x="372.3958" y="321.7407">clerk</text><!--MD5=[852381a7bb976b86080137fb6d718ea9]
link customer to checkout--><path d="M95.5938,284.6944 C114.9271,284.6944 138.6875,284.6944 160.6875,284.6944 " fill="none" id="customer-checkout" style="stroke:#E2E2E2;stroke-width:3.125;"/><!--MD5=[3ad5c6d5c608bfd6b87dc9c07c40a15f]
link checkout to payment--><path d="M228.6458,255.8923 C228.6458,235.7153 228.6458,208.684 228.6458,187.4444 " fill="none" id="checkout-to-payment" style="stroke:#E2E2E2;stroke-width:3.125;stroke-dasharray:7.0,7.0;"/><polygon fill="#E2E2E2" points="228.6458,182.184,224.4792,191.559,228.6458,187.3923,232.8125,191.559,228.6458,182.184" style="stroke:#E2E2E2;stroke-width:3.125;"/><text fill="#303030" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="45.8333" x="183.8542" y="224.3449">include</text><!--MD5=[739e7928149c8fe27c2b5850560351c7]
link help to checkout--><path d="M228.6458,387.1423 C228.6458,366.9653 228.6458,339.934 228.6458,318.6944 " fill="none" id="help-to-checkout" style="stroke:#E2E2E2;stroke-width:3.125;stroke-dasharray:7.0,7.0;"/><polygon fill="#E2E2E2" points="228.6458,313.434,224.4792,322.809,228.6458,318.6423,232.8125,322.809,228.6458,313.434" style="stroke:#E2E2E2;stroke-width:3.125;"/><text fill="#303030" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="53.125" x="180.2083" y="355.5949">extends</text><!--MD5=[b4c4ee8f2d94c159d2b9e04bd372cbe0]
link checkout to clerk--><path d="M296.625,284.6944 C319.7604,284.6944 344.2604,284.6944 361.8125,284.6944 " fill="none" id="checkout-clerk" style="stroke:#E2E2E2;stroke-width:3.125;"/><rect fill="#E2E2E2" height="46.4417" rx="5.2083" ry="5.2083" style="stroke:#888888;stroke-width:1.0416666666666667;" width="145.8333" x="133.8542" y="475.3194"/><text fill="#336699" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="112.5" x="150.5208" y="503.5116">This is my legend</text><!--MD5=[b62bea1892b38927d620ae065bf104de]
@startuml
!$THEME = "lightgray"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$WHITE = "#FFF"
!$GRAY_DARK = "#4d4d4d"
!$GRAY = "#737373"
!$LIGHT = "#fcfcfc"
!$DARK = "#303030"
!$FGCOLOR = $DARK
!$PRIMARY = "#e2e2e2"
!$PRIMARY_LIGHT = "#f3f3f3"
!$PRIMARY_DARK = "#888888"
!$PRIMARY_TEXT = "#336699"
!$SECONDARY = "#d2d2d2"
!$SECONDARY_LIGHT = "#dbdbdb"
!$SECONDARY_DARK = "#a8a8a8"
!$SECONDARY_TEXT = "white"
!$INFO = "#336699"
!$INFO_LIGHT = "#5c85ad"
!$INFO_DARK = "#29527a"
!$INFO_TEXT = $WHITE
!$SUCCESS = "#339933"
!$SUCCESS_LIGHT = "#5cad5c"
!$SUCCESS_DARK = "#297a29"
!$SUCCESS_TEXT = $WHITE
!$WARNING = "#ffae42"
!$WARNING_LIGHT = "#ffbe68"
!$WARNING_DARK = "#cc8b35"
!$WARNING_TEXT = $WHITE
!$DANGER = "#ff3333"
!$DANGER_LIGHT = "#ff5c5c"
!$DANGER_DARK = "#cc2929"
!$DANGER_TEXT = $WHITE
!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_LIGHT
BackgroundColor $PRIMARY_LIGHT-$PRIMARY
!endprocedure
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 15
skinparam ParticipantPadding 30
skinparam BoxPadding 30
skinparam Padding 10
skinparam ArrowColor $GRAY
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 $SECONDARY_TEXT
BorderColor $SECONDARY
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $SECONDARY_LIGHT-$SECONDARY
}
skinparam legend {
BackgroundColor $PRIMARY
BorderColor $PRIMARY_DARK
FontColor $PRIMARY_TEXT
}
!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-$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 $SECONDARY_TEXT
BackgroundColor $BGCOLOR
StartColor $PRIMARY
EndColor $PRIMARY
BoxBackgroundColor $BGCOLOR
BoxBorderColor $GRAY
BoxFontColor $DARK
LifeLineBorderColor $SECONDARY_DARK
LifeLineBorderThickness 2
LifeLineBackgroundColor $SECONDARY_LIGHT
GroupBorderColor $DARK
GroupFontColor $DARK
GroupHeaderFontColor $INFO_TEXT
GroupBackgroundColor $BGCOLOR
GroupBodyBackgroundColor $BGCOLOR
GroupHeaderBackgroundColor $BGCOLOR
DividerBackgroundColor $WHITE-$LIGHT
DividerBorderColor $GRAY
DividerBorderThickness 2
DividerFontColor $DARK
ReferenceBackgroundColor $BGCOLOR
ReferenceBorderColor $GRAY
ReferenceFontColor $DARK
ReferenceHeaderFontColor $INFO
}
!endsub
!startsub partition
skinparam partition {
BorderColor $PRIMARY
FontColor $PRIMARY_DARK
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 #orange
BorderColor #999999
FontColor #333333
}
!endsub
!startsub note
skinparam note {
BorderThickness 1
BackgroundColor $INFO_LIGHT-$INFO
BorderColor $INFO
FontColor $WHITE
}
!endsub
!startsub artifact
skinparam artifact {
BackgroundColor white-$LIGHT
BorderColor $SECONDARY_DARK
FontColor $SECONDARY_DARK
}
!endsub
!startsub component
skinparam component {
$primary_scheme()
}
!endsub
!startsub interface
skinparam interface {
BackgroundColor $DANGER_LIGHT
BorderColor $DANGER
FontColor $DARK
}
!endsub
!startsub storage
skinparam storage {
BackgroundColor $WARNING_LIGHT-$WARNING
BorderColor $WARNING
FontColor $WARNING_TEXT
}
!endsub
!startsub node
skinparam node {
BackgroundColor $BGCOLOR
BorderColor $PRIMARY_LIGHT
FontColor $PRIMARY_TEXT
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor $F2FCFE
FontColor $PRIMARY_TEXT
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
BackgroundColor $BGCOLOR
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY_DARK
StereotypeFontColor $DARK
StereotypeFontSize 9
BorderThickness 1
AttributeFontColor $DARK
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $LIGHT
BorderThickness 1
AttributeFontColor $DARK
AttributeFontSize 11
}
!endsub
!startsub usecase
skinparam usecase {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub rectangle
skinparam rectangle {
$primary_scheme()
BackgroundColor $BGCOLOR
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub package
skinparam package {
$primary_scheme()
BackgroundColor $BGCOLOR
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $PRIMARY_LIGHT
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $PRIMARY_LIGHT
BorderColor $INFO
FontColor $INFO
BorderThickness 2
}
!endsub
!startsub state
skinparam state {
$primary_scheme()
BorderColor $PRIMARY_DARK
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
BorderColor $INFO
FontColor $INFO_TEXT
}
!endsub
!startsub file
skinparam file {
BackgroundColor $SECONDARY_LIGHT-$SECONDARY
BorderColor $SECONDARY_DARK
FontColor $SECONDARY_TEXT
}
!endsub
!startsub stack
skinparam stack {
$primary_scheme()
}
!endsub
!if %variable_exists("$THEME")
title Usecase Diagram - $THEME theme
!else
title Usecase Diagram
!endif
legend
This is my legend
endlegend
'skinparam BackgroundColor transparent
left to right direction
actor customer
actor clerk
rectangle checkout {
customer - - (checkout)
(checkout) .> (payment) : include
(help) .> (checkout) : extends
(checkout) - - clerk
}
@enduml
@startuml
skinparam backgroundColor transparent
skinparam useBetaStyle false
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 15
skinparam ParticipantPadding 30
skinparam BoxPadding 30
skinparam Padding 10
skinparam ArrowColor #737373
skinparam stereotype {
CBackgroundColor #dbdbdb
CBorderColor #a8a8a8
ABackgroundColor #5cad5c
ABorderColor #297a29
IBackgroundColor #ff5c5c
IBorderColor #cc2929
EBackgroundColor #ffbe68
EBorderColor #cc8b35
NBackgroundColor #5c85ad
NBorderColor #29527a
}
skinparam title {
FontColor white
BorderColor #d2d2d2
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #dbdbdb-#d2d2d2
}
skinparam legend {
BackgroundColor #e2e2e2
BorderColor #888888
FontColor #336699
}
skinparam swimlane {
BorderColor #336699
BorderThickness 2
TitleBackgroundColor #dbdbdb-#d2d2d2
TitleFontColor #e2e2e2
}
skinparam activity {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BarColor #339933
StartColor #336699
EndColor #336699
DiamondBackgroundColor #d2d2d2-#a8a8a8
DiamondBorderColor #a8a8a8
DiamondFontColor white
}
skinparam participant {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam arrow {
Thickness 3
Color #e2e2e2
FontColor #303030
}
skinparam sequence {
BorderColor #e2e2e2
TitleFontColor white
BackgroundColor transparent
StartColor #e2e2e2
EndColor #e2e2e2
BoxBackgroundColor transparent
BoxBorderColor #737373
BoxFontColor #303030
LifeLineBorderColor #a8a8a8
LifeLineBorderThickness 2
LifeLineBackgroundColor #dbdbdb
GroupBorderColor #303030
GroupFontColor #303030
GroupHeaderFontColor #FFF
GroupBackgroundColor transparent
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #FFF-#fcfcfc
DividerBorderColor #737373
DividerBorderThickness 2
DividerFontColor #303030
ReferenceBackgroundColor transparent
ReferenceBorderColor #737373
ReferenceFontColor #303030
ReferenceHeaderFontColor #336699
}
skinparam partition {
BorderColor #e2e2e2
FontColor #888888
BackgroundColor transparent
}
skinparam collections {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam control {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam entity {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam boundary {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam agent {
BackgroundColor #orange
BorderColor #999999
FontColor #333333
}
skinparam note {
BorderThickness 1
BackgroundColor #5c85ad-#336699
BorderColor #336699
FontColor #FFF
}
skinparam artifact {
BackgroundColor white-#fcfcfc
BorderColor #a8a8a8
FontColor #a8a8a8
}
skinparam component {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam interface {
BackgroundColor #ff5c5c
BorderColor #ff3333
FontColor #303030
}
skinparam storage {
BackgroundColor #ffbe68-#ffae42
BorderColor #ffae42
FontColor #FFF
}
skinparam node {
BackgroundColor transparent
BorderColor #f3f3f3
FontColor #336699
}
skinparam cloud {
BackgroundColor transparent
BorderColor $F2FCFE
FontColor #336699
}
skinparam database {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BackgroundColor transparent
}
skinparam class {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
HeaderBackgroundColor #f3f3f3-#888888
StereotypeFontColor #303030
StereotypeFontSize 9
BorderThickness 1
AttributeFontColor #303030
AttributeFontSize 11
}
skinparam object {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
StereotypeFontColor #fcfcfc
BorderThickness 1
AttributeFontColor #303030
AttributeFontSize 11
}
skinparam usecase {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BorderThickness 2
StereotypeFontColor #e2e2e2
}
skinparam rectangle {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #e2e2e2
}
skinparam package {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BackgroundColor transparent
BorderThickness 2
}
skinparam folder {
BackgroundColor #f3f3f3
BorderColor #ffae42
FontColor #ffae42
BorderThickness 2
}
skinparam frame {
BackgroundColor #f3f3f3
BorderColor #336699
FontColor #336699
BorderThickness 2
}
skinparam state {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
BorderColor #888888
StartColor #336699
EndColor #336699
AttributeFontColor white
AttributeFontSize 11
}
skinparam queue {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
skinparam card {
BackgroundColor #5c85ad-#336699
BorderColor #336699
FontColor #FFF
}
skinparam file {
BackgroundColor #dbdbdb-#d2d2d2
BorderColor #a8a8a8
FontColor white
}
skinparam stack {
FontColor #336699
BorderColor #f3f3f3
BackgroundColor #f3f3f3-#e2e2e2
}
title Usecase Diagram - lightgray theme
legend
This is my legend
endlegend
left to right direction
actor customer
actor clerk
rectangle checkout {
customer - - (checkout)
(checkout) .> (payment) : include
(help) .> (checkout) : extends
(checkout) - - clerk
}
@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>