demo_doc/puml/cerulean/usecase-ex.svg

811 lines
18 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="441.6667px" preserveAspectRatio="none" style="width:408px;height:441px;background:#00000000;" version="1.1" viewBox="0 0 408 441" width="408.3333px" zoomAndPan="magnify"><defs><linearGradient id="gialxwifneovn0" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#EDF0F2"/><stop offset="100%" stop-color="#E9ECEF"/></linearGradient><linearGradient id="gialxwifneovn1" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#59B6EC"/><stop offset="100%" stop-color="#2FA4E7"/></linearGradient></defs><g><rect fill="url(#gialxwifneovn0)" height="46.1528" rx="4.1667" ry="4.1667" style="stroke:#BABDBF;stroke-width:1.0416666666666667;" width="395.8333" x="2.0833" y="2.0833"/><text fill="#2FA4E7" font-family="Verdana" font-size="20.8333" lengthAdjust="spacing" textLength="368.75" x="15.625" y="33.4452">Usecase Diagram - cerulean theme</text><!--MD5=[111002b242a260edbcaabc3e471064d0]
cluster checkout--><rect height="317.7083" rx="4.1667" ry="4.1667" style="stroke:#59B6EC;stroke-width:2.0833333333333335;fill:none;" width="154.1667" x="144.7917" y="58.6528"/><text fill="#2FA4E7" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacing" textLength="61.4583" x="191.1458" y="78.5116">checkout</text><ellipse cx="222.0358" cy="231.4481" fill="url(#gialxwifneovn1)" rx="60.5774" ry="21.2328" style="stroke:#2FA4E7;stroke-width:2.0833333333333335;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="58.3333" x="192.8691" y="234.336">checkout</text><ellipse cx="221.82" cy="125.1981" fill="url(#gialxwifneovn1)" rx="59.8409" ry="21.2328" style="stroke:#2FA4E7;stroke-width:2.0833333333333335;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="57.2917" x="193.1742" y="128.086">payment</text><ellipse cx="222.0294" cy="337.6981" fill="url(#gialxwifneovn1)" rx="39.2169" ry="21.2328" style="stroke:#2FA4E7;stroke-width:2.0833333333333335;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="28.125" x="207.9669" y="340.586">help</text><!--MD5=[92848cbaf65985a669855153c5362c37]
entity customer--><ellipse cx="60.4167" cy="196.1528" fill="url(#gialxwifneovn1)" rx="8.3333" ry="8.3333" style="stroke:#2FA4E7;stroke-width:1.5625;"/><path d="M60.4167,204.4861 L60.4167,232.6111 M46.875,212.8194 L73.9583,212.8194 M60.4167,232.6111 L46.875,248.2361 M60.4167,232.6111 L73.9583,248.2361 " fill="none" style="stroke:#2FA4E7;stroke-width:1.5625;"/><text fill="#343A40" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="60.4167" x="30.2083" y="268.6157">customer</text><!--MD5=[ebeabf449828f4e0b33bbb47961e644b]
entity clerk--><ellipse cx="368.2292" cy="196.1528" fill="url(#gialxwifneovn1)" rx="8.3333" ry="8.3333" style="stroke:#2FA4E7;stroke-width:1.5625;"/><path d="M368.2292,204.4861 L368.2292,232.6111 M354.6875,212.8194 L381.7708,212.8194 M368.2292,232.6111 L354.6875,248.2361 M368.2292,232.6111 L381.7708,248.2361 " fill="none" style="stroke:#2FA4E7;stroke-width:1.5625;"/><text fill="#343A40" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="30.2083" x="353.125" y="268.6157">clerk</text><!--MD5=[852381a7bb976b86080137fb6d718ea9]
link customer to checkout--><path d="M96.0417,231.5694 C115.0833,231.5694 139.25,231.5694 161.2292,231.5694 " fill="none" id="customer-checkout" style="stroke:#2FA4E7;stroke-width:3.125;"/><!--MD5=[3ad5c6d5c608bfd6b87dc9c07c40a15f]
link checkout to payment--><path d="M221.875,210.0694 C221.875,193.3611 221.875,170.1007 221.875,152.1632 " fill="none" id="checkout-to-payment" style="stroke:#2FA4E7;stroke-width:3.125;stroke-dasharray:7.0,7.0;"/><polygon fill="#2FA4E7" points="221.875,146.7882,217.7083,156.1632,221.875,151.9965,226.0417,156.1632,221.875,146.7882" style="stroke:#2FA4E7;stroke-width:3.125;"/><text fill="#343A40" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="45.8333" x="182.2917" y="183.7199">include</text><!--MD5=[739e7928149c8fe27c2b5850560351c7]
link help to checkout--><path d="M221.875,316.3194 C221.875,299.6111 221.875,276.3507 221.875,258.4132 " fill="none" id="help-to-checkout" style="stroke:#2FA4E7;stroke-width:3.125;stroke-dasharray:7.0,7.0;"/><polygon fill="#2FA4E7" points="221.875,253.0382,217.7083,262.4132,221.875,258.2465,226.0417,262.4132,221.875,253.0382" style="stroke:#2FA4E7;stroke-width:3.125;"/><text fill="#343A40" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="53.125" x="178.6458" y="289.9699">extends</text><!--MD5=[b4c4ee8f2d94c159d2b9e04bd372cbe0]
link checkout to clerk--><path d="M282.4271,231.5694 C305.7188,231.5694 330.8125,231.5694 347.6042,231.5694 " fill="none" id="checkout-clerk" style="stroke:#2FA4E7;stroke-width:3.125;"/><rect fill="#E9ECEF" height="36.025" rx="5.2083" ry="5.2083" style="stroke:#BABDBF;stroke-width:1.0416666666666667;" width="135.4167" x="132.2917" y="389.9028"/><text fill="#343A40" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="112.5" x="143.75" y="412.8866">This is my legend</text><!--MD5=[bd02257e41a2aee6016d65776b9793d4]
@startuml
!$THEME = "cerulean"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$BLUE = "#033C73"
!$INDIGO = "#6610F2"
!$PURPLE = "#6F42C1"
!$PINK = "#E83E8C"
!$RED = "#C71C22"
!$ORANGE = "#FD7E14"
!$YELLOW = "#DD5600"
!$GREEN = "#73A839"
!$TEAL = "#20C997"
!$CYAN = "#2FA4E7"
!$WHITE = "#FFF"
!$GRAY_DARK = "#343A40"
!$GRAY = "#868E96"
!$PRIMARY = "#2FA4E7"
!$SECONDARY = "#E9ECEF"
!$SUCCESS = "#73A839"
!$INFO = "#033C73"
!$WARNING = "#DD5600"
!$DANGER = "#C71C22"
!$LIGHT = "#F8F9FA"
!$DARK = "#343A40"
!$FGCOLOR = $DARK
!$PRIMARY_LIGHT = "#59B6EC"
!$PRIMARY_DARK = "#2683B9"
!$PRIMARY_TEXT = $WHITE
!$SECONDARY_LIGHT = "#EDF0F2"
!$SECONDARY_DARK = "#BABDBF"
!$SECONDARY_TEXT = $DARK
!$INFO_LIGHT = "#35638F"
!$INFO_DARK = "#02305C"
!$INFO_TEXT = $WHITE
!$SUCCESS_LIGHT = "#8FB961"
!$SUCCESS_DARK = "#5C862E"
!$SUCCESS_TEXT = $WHITE
!$WARNING_LIGHT = "#E47833"
!$WARNING_DARK = "#B14500"
!$WARNING_TEXT = $WHITE
!$DANGER_LIGHT = "#D2494E"
!$DANGER_DARK = "#9F161B"
!$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
BackgroundColor $PRIMARY_LIGHT-$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 $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 {
$primary_scheme()
BarColor $SUCCESS
StartColor $INFO
EndColor $INFO
DiamondBackgroundColor $WHITE-$SECONDARY_LIGHT
DiamondBorderColor $SECONDARY_DARK
DiamondFontColor $SECONDARY_TEXT
}
!endsub
!startsub participant
skinparam participant {
$primary_scheme()
ParticipantBorderThickness 2
}
!endsub
!startsub actor
skinparam actor {
$primary_scheme()
FontColor $DARK
}
!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 $SECONDARY
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 $DARK
}
!endsub
!startsub entity
skinparam entity {
$primary_scheme()
FontColor $DARK
}
!endsub
!startsub boundary
skinparam boundary {
$primary_scheme()
FontColor $DARK
}
!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
FontColor $SECONDARY_TEXT
}
!endsub
!startsub cloud
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor $PRIMARY
}
!endsub
!startsub database
skinparam database {
$primary_scheme()
FontColor $DARK
}
!endsub
!startsub class
skinparam class {
$primary_scheme()
HeaderBackgroundColor $PRIMARY-$PRIMARY_DARK
StereotypeFontColor $DARK
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 {
FontColor $PRIMARY
BorderColor $PRIMARY_LIGHT
BackgroundColor $BGCOLOR
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 $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 $INFO
FontColor $GRAY
}
!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 8
skinparam ParticipantPadding 40
skinparam BoxPadding 40
skinparam Padding 5
skinparam ArrowColor #868E96
skinparam stereotype {
CBackgroundColor #EDF0F2
CBorderColor #BABDBF
ABackgroundColor #8FB961
ABorderColor #5C862E
IBackgroundColor #D2494E
IBorderColor #9F161B
EBackgroundColor #E47833
EBorderColor #B14500
NBackgroundColor #35638F
NBorderColor #02305C
}
skinparam title {
FontColor #2FA4E7
BorderColor #BABDBF
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #EDF0F2-#E9ECEF
}
skinparam legend {
BackgroundColor #E9ECEF
BorderColor #BABDBF
FontColor #343A40
}
skinparam swimlane {
BorderColor #033C73
BorderThickness 2
TitleBackgroundColor #EDF0F2-#E9ECEF
TitleFontColor #2FA4E7
}
skinparam activity {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
BarColor #73A839
StartColor #033C73
EndColor #033C73
DiamondBackgroundColor #FFF-#EDF0F2
DiamondBorderColor #BABDBF
DiamondFontColor #343A40
}
skinparam participant {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
FontColor #343A40
}
skinparam arrow {
Thickness 3
Color #2FA4E7
FontColor #343A40
}
skinparam sequence {
BorderColor #2FA4E7
TitleFontColor #2FA4E7
BackgroundColor transparent
StartColor #2FA4E7
EndColor #2FA4E7
BoxBackgroundColor transparent
BoxBorderColor #868E96
BoxFontColor #343A40
LifeLineBorderColor #BABDBF
LifeLineBorderThickness 2
LifeLineBackgroundColor #EDF0F2
GroupBorderColor #868E96
GroupFontColor #343A40
GroupHeaderFontColor #033C73
GroupBackgroundColor #E9ECEF
GroupBodyBackgroundColor transparent
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #FFF-#F8F9FA
DividerBorderColor #868E96
DividerBorderThickness 2
DividerFontColor #343A40
ReferenceBackgroundColor transparent
ReferenceBorderColor #868E96
ReferenceFontColor #343A40
ReferenceHeaderFontColor #033C73
}
skinparam partition {
BorderColor #2FA4E7
FontColor #2FA4E7
BackgroundColor transparent
}
skinparam collections {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
}
skinparam control {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
FontColor #343A40
}
skinparam entity {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
FontColor #343A40
}
skinparam boundary {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
FontColor #343A40
}
skinparam agent {
BackgroundColor #orange
BorderColor #999999
FontColor #333333
}
skinparam note {
BorderThickness 1
BackgroundColor #35638F-#033C73
BorderColor #033C73
FontColor #FFF
}
skinparam artifact {
BackgroundColor #FFF-#F8F9FA
BorderColor #BABDBF
FontColor #343A40
}
skinparam component {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
}
skinparam interface {
BackgroundColor #D2494E
BorderColor #C71C22
FontColor #343A40
}
skinparam storage {
BackgroundColor #E47833-#DD5600
BorderColor #DD5600
FontColor #FFF
}
skinparam node {
BackgroundColor #EDF0F2-#E9ECEF
BorderColor #E9ECEF
FontColor #343A40
}
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor #2FA4E7
}
skinparam database {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
FontColor #343A40
}
skinparam class {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
HeaderBackgroundColor #2FA4E7-#2683B9
StereotypeFontColor #343A40
BorderThickness 1
AttributeFontColor #F8F9FA
AttributeFontSize 11
}
skinparam object {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
StereotypeFontColor #343A40
BorderThickness 1
AttributeFontColor #343A40
AttributeFontSize 11
}
skinparam usecase {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
BorderThickness 2
StereotypeFontColor #2FA4E7
}
skinparam rectangle {
FontColor #2FA4E7
BorderColor #59B6EC
BackgroundColor transparent
BorderThickness 2
StereotypeFontColor #2FA4E7
}
skinparam package {
FontColor #2FA4E7
BorderColor #59B6EC
BackgroundColor transparent
BorderThickness 2
}
skinparam folder {
BackgroundColor #FFF-#EDF0F2
BorderColor #DD5600
FontColor #DD5600
BorderThickness 2
}
skinparam frame {
BackgroundColor #FFF-#EDF0F2
BorderColor #033C73
FontColor #033C73
BorderThickness 2
}
skinparam state {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
BorderColor #2683B9
StartColor #033C73
EndColor #033C73
AttributeFontColor #343A40
AttributeFontSize 11
}
skinparam queue {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
}
skinparam card {
BackgroundColor #35638F-#033C73
BorderColor #033C73
FontColor #FFF
}
skinparam file {
BackgroundColor #EDF0F2-#E9ECEF
BorderColor #033C73
FontColor #868E96
}
skinparam stack {
FontColor #FFF
BorderColor #2FA4E7
BackgroundColor #59B6EC-#2FA4E7
}
title Usecase Diagram - cerulean 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>