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

801 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="441.6667px" preserveAspectRatio="none" style="width:384px;height:441px;background:#00000000;" version="1.1" viewBox="0 0 384 441" width="384.375px" zoomAndPan="magnify"><defs><linearGradient id="g1ot9jevhzpxe40" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#B6B0A9"/><stop offset="100%" stop-color="#AEA79F"/></linearGradient></defs><g><rect fill="url(#g1ot9jevhzpxe40)" height="46.1528" rx="4.1667" ry="4.1667" style="stroke:#9D968F;stroke-width:1.0416666666666667;" width="371.875" x="2.0833" y="2.0833"/><text fill="#E95420" font-family="Verdana" font-size="20.8333" lengthAdjust="spacing" textLength="344.7917" x="15.625" y="33.4452">Usecase Diagram - united theme</text><!--MD5=[111002b242a260edbcaabc3e471064d0]
cluster checkout--><rect fill="#B6B0A9" height="317.7083" rx="4.1667" ry="4.1667" style="stroke:#D24C1D;stroke-width:2.0833333333333335;" width="154.1667" x="132.8125" y="58.6528"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" font-weight="bold" lengthAdjust="spacing" textLength="61.4583" x="179.1667" y="78.5116">checkout</text><ellipse cx="210.0566" cy="231.4481" fill="#E95420" rx="60.5774" ry="21.2328" style="stroke:#D24C1D;stroke-width:2.0833333333333335;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="58.3333" x="180.8899" y="234.336">checkout</text><ellipse cx="209.8409" cy="125.1981" fill="#E95420" rx="59.8409" ry="21.2328" style="stroke:#D24C1D;stroke-width:2.0833333333333335;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="57.2917" x="181.195" y="128.086">payment</text><ellipse cx="210.0502" cy="337.6981" fill="#E95420" rx="39.2169" ry="21.2328" style="stroke:#D24C1D;stroke-width:2.0833333333333335;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="28.125" x="195.9877" y="340.586">help</text><!--MD5=[92848cbaf65985a669855153c5362c37]
entity customer--><ellipse cx="48.4375" cy="196.1528" fill="#E95420" rx="8.3333" ry="8.3333" style="stroke:#D24C1D;stroke-width:1.5625;"/><path d="M48.4375,204.4861 L48.4375,232.6111 M34.8958,212.8194 L61.9792,212.8194 M48.4375,232.6111 L34.8958,248.2361 M48.4375,232.6111 L61.9792,248.2361 " fill="none" style="stroke:#D24C1D;stroke-width:1.5625;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="60.4167" x="18.2292" y="268.6157">customer</text><!--MD5=[ebeabf449828f4e0b33bbb47961e644b]
entity clerk--><ellipse cx="356.25" cy="196.1528" fill="#E95420" rx="8.3333" ry="8.3333" style="stroke:#D24C1D;stroke-width:1.5625;"/><path d="M356.25,204.4861 L356.25,232.6111 M342.7083,212.8194 L369.7917,212.8194 M356.25,232.6111 L342.7083,248.2361 M356.25,232.6111 L369.7917,248.2361 " fill="none" style="stroke:#D24C1D;stroke-width:1.5625;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="30.2083" x="341.1458" y="268.6157">clerk</text><!--MD5=[852381a7bb976b86080137fb6d718ea9]
link customer to checkout--><path d="M84.0625,231.5694 C103.1042,231.5694 127.2708,231.5694 149.25,231.5694 " fill="none" id="customer-checkout" style="stroke:#E95420;stroke-width:3.125;"/><!--MD5=[3ad5c6d5c608bfd6b87dc9c07c40a15f]
link checkout to payment--><path d="M209.8958,210.0694 C209.8958,193.3611 209.8958,170.1007 209.8958,152.1632 " fill="none" id="checkout-to-payment" style="stroke:#E95420;stroke-width:3.125;stroke-dasharray:7.0,7.0;"/><polygon fill="#E95420" points="209.8958,146.7882,205.7292,156.1632,209.8958,151.9965,214.0625,156.1632,209.8958,146.7882" style="stroke:#E95420;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="45.8333" x="170.3125" y="183.7199">include</text><!--MD5=[739e7928149c8fe27c2b5850560351c7]
link help to checkout--><path d="M209.8958,316.3194 C209.8958,299.6111 209.8958,276.3507 209.8958,258.4132 " fill="none" id="help-to-checkout" style="stroke:#E95420;stroke-width:3.125;stroke-dasharray:7.0,7.0;"/><polygon fill="#E95420" points="209.8958,253.0382,205.7292,262.4132,209.8958,258.2465,214.0625,262.4132,209.8958,253.0382" style="stroke:#E95420;stroke-width:3.125;"/><text fill="#FFFFFF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="53.125" x="166.6667" y="289.9699">extends</text><!--MD5=[b4c4ee8f2d94c159d2b9e04bd372cbe0]
link checkout to clerk--><path d="M270.4479,231.5694 C293.7396,231.5694 318.8333,231.5694 335.625,231.5694 " fill="none" id="checkout-clerk" style="stroke:#E95420;stroke-width:3.125;"/><rect fill="#AEA79F" height="36.025" rx="5.2083" ry="5.2083" style="stroke:#9D968F;stroke-width:1.0416666666666667;" width="135.4167" x="120.3125" y="389.9028"/><text fill="#E9ECEF" font-family="Verdana" font-size="12.5" lengthAdjust="spacing" textLength="112.5" x="131.7708" y="412.8866">This is my legend</text><!--MD5=[af14a1d1e96d2f8dac5127552e6ddb89]
@startuml
!$THEME = "united"
!if %not(%variable_exists("$BGCOLOR"))
!$BGCOLOR = "transparent"
!endif
skinparam backgroundColor $BGCOLOR
skinparam useBetaStyle false
!$BLUE = "#007bff"
!$INDIGO = "#6610f2"
!$PURPLE = "#772953"
!$PINK = "#e83e8c"
!$RED = "#df382c"
!$ORANGE = "#e95420"
!$YELLOW = "#efb73e"
!$GREEN = "#38b44a"
!$TEAL = "#20c997"
!$CYAN = "#17a2b8"
!$WHITE = "#fff"
!$GRAY = "#868e96"
!$GRAYDARK = "#333"
!$PRIMARY = "#e95420"
!$SECONDARY = "#aea79f"
!$SUCCESS = "#38b44a"
!$INFO = "#17a2b8"
!$WARNING = "#efb73e"
!$DANGER = "#df382c"
!$LIGHT = "#e9ecef"
!$DARK = "#772953"
!$FGCOLOR = $WHITE
!$PRIMARY_DARK = "#d24c1d"
!$PRIMARY_LIGHT = "#eb6536"
!$PRIMARY_TEXT = $WHITE
!$SECONDARY_DARK = "#9d968f"
!$SECONDARY_LIGHT = "#b6b0a9"
!$SECONDARY_TEXT = $WHITE
!$INFO_DARK = "#1592a6"
!$INFO_LIGHT = "#2eabbf"
!$INFO_TEXT = $WHITE
!$SUCCESS_DARK = "#32a243"
!$SUCCESS_LIGHT = "#4cbc5c"
!$SUCCESS_TEXT = $WHITE
!$WARNING_DARK = "#d7a538"
!$WARNING_LIGHT = "#f1be51"
!$WARNING_TEXT = $WHITE
!$DANGER_DARK = "#c93228"
!$DANGER_LIGHT = "#e24c41"
!$DANGER_TEXT = $WHITE
!$DARK_DARK = "#6b254b"
!$DARK_LIGHT = "#853e64"
!$LIGHT_DARK = "#d2d4d7"
!$LIGHT_LIGHT = "#ebeef1"
!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()
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
GroupBorderColor $DARK
GroupFontColor $DARK
GroupHeaderFontColor $INFO
GroupBackgroundColor $SECONDARY
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 #F2FCFE
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()
BackgroundColor $PRIMARY_LIGHT
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 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 #772953
skinparam stereotype {
CBackgroundColor #b6b0a9
CBorderColor #9d968f
ABackgroundColor #4cbc5c
ABorderColor #32a243
IBackgroundColor #e24c41
IBorderColor #c93228
EBackgroundColor #f1be51
EBorderColor #d7a538
NBackgroundColor #2eabbf
NBorderColor #1592a6
}
skinparam title {
FontColor #e95420
BorderColor #9d968f
FontSize 20
BorderRoundCorner 8
BorderThickness 1
BackgroundColor #b6b0a9-#aea79f
}
skinparam legend {
BackgroundColor #aea79f
BorderColor #9d968f
FontColor #e9ecef
}
skinparam swimlane {
BorderColor #17a2b8
BorderThickness 2
TitleBackgroundColor #b6b0a9-#aea79f
TitleFontColor #e95420
}
skinparam activity {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
BarColor #38b44a
StartColor #17a2b8
EndColor #17a2b8
DiamondBackgroundColor #b6b0a9
DiamondBorderColor #9d968f
DiamondFontColor #fff
}
skinparam participant {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
ParticipantBorderThickness 2
}
skinparam actor {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
}
skinparam arrow {
Thickness 3
Color #e95420
FontColor #fff
}
skinparam sequence {
BorderColor #e95420
TitleFontColor #e95420
BackgroundColor transparent
StartColor #e95420
EndColor #e95420
BoxBackgroundColor transparent
BoxBorderColor #772953
BoxFontColor $DARk
LifeLineBorderColor #aea79f
LifeLineBorderThickness 2
LifeLineBackgroundColor #9d968f
GroupBorderColor #772953
GroupFontColor #772953
GroupHeaderFontColor #17a2b8
GroupBackgroundColor #aea79f
GroupHeaderBackgroundColor transparent
DividerBackgroundColor #772953
DividerBorderColor #772953
DividerBorderThickness 2
DividerFontColor #e9ecef
ReferenceBackgroundColor transparent
ReferenceBorderColor #772953
ReferenceFontColor #772953
ReferenceHeaderFontColor #17a2b8
ReferenceHeaderBackgroundColor #aea79f
}
skinparam partition {
BorderColor #e95420
FontColor #e95420
BackgroundColor transparent
}
skinparam collections {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
}
skinparam control {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
}
skinparam entity {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
}
skinparam boundary {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
}
skinparam agent {
BackgroundColor #efb73e
BorderColor #f1be51
FontColor #772953
}
skinparam note {
BorderThickness 1
BackgroundColor #17a2b8
BorderColor #1592a6
FontColor #fff
}
skinparam artifact {
BackgroundColor #772953
BorderColor #6b254b
FontColor #e9ecef
}
skinparam component {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
}
skinparam interface {
BackgroundColor #c93228
BorderColor #df382c
FontColor #772953
}
skinparam storage {
BackgroundColor #efb73e
BorderColor #d7a538
FontColor #fff
}
skinparam node {
BackgroundColor #aea79f
BorderColor #e9ecef
FontColor #e9ecef
}
skinparam cloud {
BackgroundColor transparent
BorderColor #F2FCFE
FontColor #772953
}
skinparam database {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
}
skinparam class {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
HeaderBackgroundColor #eb6536
StereotypeFontColor #772953
BorderThickness 1
AttributeFontColor #772953
AttributeFontSize 11
}
skinparam object {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
StereotypeFontColor #772953
BorderThickness 1
AttributeFontColor #fff
AttributeFontSize 11
}
skinparam usecase {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
BorderThickness 2
StereotypeFontColor #e95420
}
skinparam rectangle {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
BackgroundColor #b6b0a9
BorderThickness 2
StereotypeFontColor #e95420
}
skinparam package {
BackgroundColor #aea79f
BorderColor #e95420
FontColor #e95420
BorderThickness 2
}
skinparam folder {
BackgroundColor #b6b0a9
BorderColor #efb73e
FontColor #efb73e
BorderThickness 2
}
skinparam frame {
BackgroundColor #b6b0a9
BorderColor #17a2b8
FontColor #17a2b8
BorderThickness 2
}
skinparam state {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
BackgroundColor #eb6536
StartColor #17a2b8
EndColor #17a2b8
AttributeFontColor #fff
AttributeFontSize 11
}
skinparam queue {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
}
skinparam card {
BackgroundColor #17a2b8
BorderColor #1592a6
FontColor #fff
}
skinparam file {
BackgroundColor #9d968f
BorderColor #e9ecef
FontColor #e9ecef
}
skinparam stack {
FontColor #fff
BorderColor #d24c1d
BackgroundColor #e95420
}
title Usecase Diagram - united 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>