demo_doc/puml/bluegray/usecase-ex.svg

840 lines
19 KiB
XML
Raw Permalink 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="497.9167px" preserveAspectRatio="none" style="width:415px;height:497px;background:#00000000;" version="1.1" viewBox="0 0 415 497" width="415.625px" zoomAndPan="magnify"><defs><linearGradient id="g11to7osoa72hk0" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#F5F5F5"/><stop offset="100%" stop-color="#F2F2F2"/></linearGradient><linearGradient id="g11to7osoa72hk1" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFFFFF"/><stop offset="100%" stop-color="#FEFEFE"/></linearGradient><linearGradient id="g11to7osoa72hk2" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#33B2E2"/><stop offset="100%" stop-color="#009FDB"/></linearGradient></defs><g><rect fill="url(#g11to7osoa72hk0)" height="52.4028" rx="4.1667" ry="4.1667" style="stroke:#C2C2C2;stroke-width:1.0416666666666667;" width="403.125" x="2.0833" y="2.0833"/><text fill="#009FDB" font-family="Verdana" font-size="20.8333" lengthAdjust="spacing" textLength="369.7917" x="18.75" y="36.5702">Usecase Diagram - bluegray theme</text><!--MD5=[111002b242a260edbcaabc3e471064d0]
cluster checkout--><rect fill="url(#g11to7osoa72hk1)" height="361.4583" rx="10.4167" ry="10.4167" style="stroke:#C2C2C2;stroke-width:2.0833333333333335;" width="163.5417" x="143.75" y="64.9028"/><text fill="#5A5A5A" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacing" textLength="61.4583" x="194.7917" y="87.8866">checkout</text><ellipse cx="225.4135" cy="262.9508" fill="url(#g11to7osoa72hk2)" rx="64.9968" ry="25.6522" style="stroke:#33B2E2;stroke-width:2.0833333333333335;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="58.3333" x="196.2468" y="265.8388">checkout</text><ellipse cx="225.7186" cy="142.1175" fill="url(#g11to7osoa72hk2)" rx="64.2603" ry="25.6522" style="stroke:#33B2E2;stroke-width:2.0833333333333335;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="57.2917" x="197.0728" y="145.0055">payment</text><ellipse cx="225.4072" cy="383.7841" fill="url(#g11to7osoa72hk2)" rx="43.6363" ry="25.6522" style="stroke:#33B2E2;stroke-width:2.0833333333333335;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="28.125" x="211.3447" y="386.6721">help</text><!--MD5=[92848cbaf65985a669855153c5362c37]
entity customer--><ellipse cx="56.25" cy="224.2778" fill="url(#g11to7osoa72hk2)" rx="8.3333" ry="8.3333" style="stroke:#33B2E2;stroke-width:1.5625;"/><path d="M56.25,232.6111 L56.25,260.7361 M42.7083,240.9444 L69.7917,240.9444 M56.25,260.7361 L42.7083,276.3611 M56.25,260.7361 L69.7917,276.3611 " fill="none" style="stroke:#33B2E2;stroke-width:1.5625;"/><text fill="#009FDB" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="60.4167" x="26.0417" y="299.8657">customer</text><!--MD5=[ebeabf449828f4e0b33bbb47961e644b]
entity clerk--><ellipse cx="379.6875" cy="224.2778" fill="url(#g11to7osoa72hk2)" rx="8.3333" ry="8.3333" style="stroke:#33B2E2;stroke-width:1.5625;"/><path d="M379.6875,232.6111 L379.6875,260.7361 M366.1458,240.9444 L393.2292,240.9444 M379.6875,260.7361 L366.1458,276.3611 M379.6875,260.7361 L393.2292,276.3611 " fill="none" style="stroke:#33B2E2;stroke-width:1.5625;"/><text fill="#009FDB" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="30.2083" x="364.5833" y="299.8657">clerk</text><!--MD5=[852381a7bb976b86080137fb6d718ea9]
link customer to checkout--><path d="M94.8125,262.8194 C114.0625,262.8194 138.0625,262.8194 160.1563,262.8194 " fill="none" id="customer-checkout" style="stroke:#009FDB;stroke-width:3.125;"/><!--MD5=[3ad5c6d5c608bfd6b87dc9c07c40a15f]
link checkout to payment--><path d="M225.5208,237.1944 C225.5208,218.4548 225.5208,192.934 225.5208,173.0278 " fill="none" id="checkout-to-payment" style="stroke:#009FDB;stroke-width:3.125;stroke-dasharray:7.0,7.0;"/><polygon fill="#009FDB" points="225.5208,167.5798,221.3542,176.9548,225.5208,172.7882,229.6875,176.9548,225.5208,167.5798" style="stroke:#009FDB;stroke-width:3.125;"/><text fill="#5A5A5A" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="45.8333" x="182.8125" y="207.6782">include</text><!--MD5=[739e7928149c8fe27c2b5850560351c7]
link help to checkout--><path d="M225.5208,358.0278 C225.5208,339.2882 225.5208,313.7673 225.5208,293.8611 " fill="none" id="help-to-checkout" style="stroke:#009FDB;stroke-width:3.125;stroke-dasharray:7.0,7.0;"/><polygon fill="#009FDB" points="225.5208,288.4132,221.3542,297.7882,225.5208,293.6215,229.6875,297.7882,225.5208,288.4132" style="stroke:#009FDB;stroke-width:3.125;"/><text fill="#5A5A5A" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="53.125" x="179.1667" y="328.5116">extends</text><!--MD5=[b4c4ee8f2d94c159d2b9e04bd372cbe0]
link checkout to clerk--><path d="M291.0625,262.8194 C314.2083,262.8194 338.8333,262.8194 356.0521,262.8194 " fill="none" id="checkout-clerk" style="stroke:#009FDB;stroke-width:3.125;"/><rect fill="#F2F2F2" height="42.275" rx="5.2083" ry="5.2083" style="stroke:#C2C2C2;stroke-width:1.0416666666666667;" width="141.6667" x="132.8125" y="439.9028"/><text fill="#5A5A5A" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="112.5" x="147.3958" y="466.0116">This is my legend</text><!--MD5=[9ac40b30495792e229be79ef15b96fc3]
@startuml
!$THEME = "bluegray"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$WHITE = "#fff"
!$GRAY_DARK = "#5a5a5a"
!$GRAY = "#959595"
!$PRIMARY = "#009fdb"
!$SECONDARY = "#f2f2f2"
!$SUCCESS = "#b5bd00"
!$INFO = "#0568ae"
!$WARNING = "#ea7400"
!$DANGER = "#cf2a2a"
!$LIGHT = "#d2d2d2"
!$DARK = "#5a5a5a"
!$FGCOLOR = $DARK
!$PRIMARY_LIGHT = "#33b2e2"
!$PRIMARY_DARK = "#007faf"
!$PRIMARY_TEXT = $WHITE
!$SECONDARY_LIGHT = "#f5f5f5"
!$SECONDARY_DARK = "#c2c2c2"
!$SECONDARY_TEXT = $DARK
!$INFO_LIGHT = "#3786be"
!$INFO_DARK = "#04538b"
!$INFO_TEXT = $WHITE
!$SUCCESS_LIGHT = "#c4ca33"
!$SUCCESS_DARK = "#919700"
!$SUCCESS_TEXT = $WHITE
!$WARNING_LIGHT = "#ee9033"
!$WARNING_DARK = "#bb5d00"
!$WARNING_TEXT = $WHITE
!$DANGER_LIGHT = "#d95555"
!$DANGER_DARK = "#a62222"
!$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
!procedure $secondary_scheme()
FontColor $SECONDARY_TEXT
BorderColor $SECONDARY_DARK
BackgroundColor $WHITE-#fefefe
!endprocedure
skinparam defaultFontName "Verdana"
skinparam defaultFontSize 12
skinparam dpi 100
skinparam shadowing false
skinparam roundcorner 20
skinparam ParticipantPadding 30
skinparam BoxPadding 40
skinparam Padding 8
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 $PRIMARY
BorderColor $SECONDARY_DARK
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor $SECONDARY_LIGHT-$SECONDARY
}
skinparam legend {
BackgroundColor $SECONDARY
BorderColor $SECONDARY_DARK
FontColor $DARK
}
!startsub swimlane
skinparam swimlane {
BorderColor $INFO
BorderThickness 2
TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY
TitleFontColor $PRIMARY
}
!endsub
!startsub activity
skinparam activity {
FontColor $PRIMARY_TEXT
BorderColor $PRIMARY
BackgroundColor $PRIMARY_LIGHT-$PRIMARY
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()
FontColor $PRIMARY
}
!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 $GRAY
BoxFontColor $DARK
LifeLineBorderColor $SECONDARY_DARK
LifeLineBorderThickness 2
LifeLineBackgroundColor $SECONDARY_LIGHT
GroupBorderColor $GRAY
GroupFontColor $DARK
GroupHeaderFontColor $INFO
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
BackgroundColor $BGCOLOR
}
!endsub
!startsub collections
skinparam collections {
$primary_scheme()
}
!endsub
!startsub control
skinparam control {
$primary_scheme()
FontColor $PRIMARY
}
!endsub
!startsub entity
skinparam entity {
$primary_scheme()
FontColor $PRIMARY
}
!endsub
!startsub boundary
skinparam boundary {
$primary_scheme()
FontColor $PRIMARY
}
!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_TEXT
}
!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 $SECONDARY_LIGHT-$SECONDARY
BorderColor $SECONDARY_DARK
FontColor $PRIMARY
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor $PRIMARY
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
BorderColor $PRIMARY_DARK
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
HeaderBackgroundColor $PRIMARY_LIGHT-$PRIMARY
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $LIGHT
AttributeFontSize 11
}
!endsub
!startsub object
skinparam object {
$primary_scheme()
StereotypeFontColor $DARK
BorderThickness 1
AttributeFontColor $LIGHT
AttributeFontSize 11
}
!endsub
!startsub usecase
skinparam usecase {
$primary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub rectangle
skinparam rectangle {
$secondary_scheme()
BorderThickness 2
StereotypeFontColor $PRIMARY
}
!endsub
!startsub package
skinparam package {
FontColor $PRIMARY
BorderColor $PRIMARY_LIGHT
BackgroundColor $BGCOLOR
BorderThickness 2
}
!endsub
!startsub folder
skinparam folder {
BackgroundColor $WHITE-$SECONDARY_LIGHT
BorderColor $WARNING
FontColor $WARNING
BorderThickness 2
}
!endsub
!startsub frame
skinparam frame {
BackgroundColor $WHITE-$SECONDARY_LIGHT
BorderColor $INFO
FontColor $INFO
BorderThickness 2
}
!endsub
!startsub state
skinparam state {
$primary_scheme()
BorderColor $PRIMARY_DARK
StartColor $INFO
EndColor $INFO
AttributeFontColor $LIGHT
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 $INFO
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 20
skinparam ParticipantPadding 30
skinparam BoxPadding 40
skinparam Padding 8
skinparam ArrowColor #959595
skinparam stereotype {
CBackgroundColor #f5f5f5
CBorderColor #c2c2c2
ABackgroundColor #c4ca33
ABorderColor #919700
IBackgroundColor #d95555
IBorderColor #a62222
EBackgroundColor #ee9033
EBorderColor #bb5d00
NBackgroundColor #3786be
NBorderColor #04538b
}
skinparam title {
FontColor #009fdb
BorderColor #c2c2c2
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #f5f5f5-#f2f2f2
}
skinparam legend {
BackgroundColor #f2f2f2
BorderColor #c2c2c2
FontColor #5a5a5a
}
skinparam swimlane {
BorderColor #0568ae
BorderThickness 2
TitleBackgroundColor #f5f5f5-#f2f2f2
TitleFontColor #009fdb
}
skinparam activity {
FontColor #fff
BorderColor #009fdb
BackgroundColor #33b2e2-#009fdb
BarColor #b5bd00
StartColor #0568ae
EndColor #0568ae
DiamondBackgroundColor #f5f5f5-#c2c2c2
DiamondBorderColor #c2c2c2
DiamondFontColor #5a5a5a
}
skinparam participant {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
FontColor #009fdb
}
skinparam arrow {
Thickness 3
Color #009fdb
FontColor #5a5a5a
}
skinparam sequence {
BorderColor #009fdb
TitleFontColor #009fdb
BackgroundColor transparent
StartColor #009fdb
EndColor #009fdb
BoxBackgroundColor transparent
BoxBorderColor #959595
BoxFontColor #5a5a5a
LifeLineBorderColor #c2c2c2
LifeLineBorderThickness 2
LifeLineBackgroundColor #f5f5f5
GroupBorderColor #959595
GroupFontColor #5a5a5a
GroupHeaderFontColor #0568ae
GroupBackgroundColor transparent
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #fff-#d2d2d2
DividerBorderColor #959595
DividerBorderThickness 2
DividerFontColor #5a5a5a
ReferenceBackgroundColor transparent
ReferenceBorderColor #959595
ReferenceFontColor #5a5a5a
ReferenceHeaderFontColor #0568ae
}
skinparam partition {
BorderColor #009fdb
FontColor #009fdb
BackgroundColor transparent
}
skinparam collections {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
}
skinparam control {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
FontColor #009fdb
}
skinparam entity {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
FontColor #009fdb
}
skinparam boundary {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
FontColor #009fdb
}
skinparam agent {
BackgroundColor #orange
BorderColor #999999
FontColor #333333
}
skinparam note {
BorderThickness 1
BackgroundColor #3786be-#0568ae
BorderColor #0568ae
FontColor #fff
}
skinparam artifact {
BackgroundColor #fff-#d2d2d2
BorderColor #c2c2c2
FontColor #5a5a5a
}
skinparam component {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
}
skinparam interface {
BackgroundColor #d95555
BorderColor #cf2a2a
FontColor #5a5a5a
}
skinparam storage {
BackgroundColor #ee9033-#ea7400
BorderColor #ea7400
FontColor #fff
}
skinparam node {
BackgroundColor #f5f5f5-#f2f2f2
BorderColor #c2c2c2
FontColor #009fdb
}
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor #009fdb
}
skinparam database {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
BorderColor #007faf
}
skinparam class {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
HeaderBackgroundColor #33b2e2-#009fdb
StereotypeFontColor #5a5a5a
BorderThickness 1
AttributeFontColor #d2d2d2
AttributeFontSize 11
}
skinparam object {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
StereotypeFontColor #5a5a5a
BorderThickness 1
AttributeFontColor #d2d2d2
AttributeFontSize 11
}
skinparam usecase {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
BorderThickness 2
StereotypeFontColor #009fdb
}
skinparam rectangle {
FontColor #5a5a5a
BorderColor #c2c2c2
BackgroundColor #fff-#fefefe
BorderThickness 2
StereotypeFontColor #009fdb
}
skinparam package {
FontColor #009fdb
BorderColor #33b2e2
BackgroundColor transparent
BorderThickness 2
}
skinparam folder {
BackgroundColor #fff-#f5f5f5
BorderColor #ea7400
FontColor #ea7400
BorderThickness 2
}
skinparam frame {
BackgroundColor #fff-#f5f5f5
BorderColor #0568ae
FontColor #0568ae
BorderThickness 2
}
skinparam state {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
BorderColor #007faf
StartColor #0568ae
EndColor #0568ae
AttributeFontColor #d2d2d2
AttributeFontSize 11
}
skinparam queue {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
}
skinparam card {
BackgroundColor #3786be-#0568ae
BorderColor #0568ae
FontColor #fff
}
skinparam file {
BackgroundColor #f5f5f5-#f2f2f2
BorderColor #0568ae
FontColor #5a5a5a
}
skinparam stack {
FontColor #fff
BorderColor #33b2e2
BackgroundColor #33b2e2-#009fdb
}
title Usecase Diagram - bluegray 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>