mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 10:17:50 +08:00
85 lines
7.1 KiB
XML
85 lines
7.1 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="109px" preserveAspectRatio="none" style="width:414px;height:109px;background:#FFFFFF;" version="1.1" viewBox="0 0 414 109" width="414px" zoomAndPan="magnify">
|
|
<style>@import url('https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono&display=swap');</style>
|
|
<defs><filter height="300%" id="f1n3w915scn4a5" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><!--MD5=[1d7f89d46fe5890de77e49145f8259d3]
|
|
class Topic--><rect codeLine="25" fill="#F8F8F8" filter="url(#f1n3w915scn4a5)" height="71.5999" id="Topic" style="stroke:#383838;stroke-width:1.5;" width="219" x="7" y="15"/><ellipse cx="21" cy="30" fill="#C2C2C2" rx="10" ry="10" style="stroke:#383838;stroke-width:1.0;"/><path d="M21.625,33.0469 Q22.2813,33.0469 22.75,32.8906 Q23.2188,32.7188 23.4063,32.5313 Q23.6094,32.3438 23.8125,32.1875 Q24.0156,32.0313 24.2031,32.0313 Q24.4688,32.0313 24.6719,32.2344 Q24.8906,32.4375 24.8906,32.7188 Q24.8906,33.3281 23.9375,33.8906 Q22.9844,34.4531 21.5781,34.4531 Q19.7969,34.4531 18.625,33.4063 Q17.4688,32.3594 17.4688,30.7656 L17.4688,29.8438 Q17.4688,28.1563 18.5469,27.0313 Q19.6406,25.8906 21.2656,25.8906 Q22.25,25.8906 23.2656,26.375 L23.3906,26.4219 Q23.6406,26.0938 23.9844,26.0938 Q24.3906,26.0938 24.5313,26.3281 Q24.6875,26.5625 24.6875,27.0156 L24.6875,28.1875 Q24.6875,29.1094 23.9844,29.1094 Q23.7344,29.1094 23.5625,28.9688 Q23.4063,28.8281 23.375,28.7188 Q23.3438,28.5938 23.2969,28.375 Q23.2188,27.9531 22.7813,27.7031 Q22.3594,27.4375 22,27.375 Q21.6406,27.2969 21.3281,27.2969 Q20.2656,27.2969 19.5625,28.0156 Q18.8594,28.7344 18.8594,29.8438 L18.8594,30.7344 Q18.8594,31.7813 19.6094,32.4219 Q20.3594,33.0469 21.625,33.0469 Z " fill="#000000"/><text fill="#000000" font-family="Roboto,sans-serif" font-size="14" lengthAdjust="spacing" textLength="189" x="34" y="35.6">com.intellij.util.messages.Topic</text><line style="stroke:#383838;stroke-width:1.5;" x1="8" x2="225" y1="45" y2="45"/><text fill="#000000" font-family="Roboto,sans-serif" font-size="14" lengthAdjust="spacing" textLength="98" x="13" y="62.9999">+displayName()</text><text fill="#000000" font-family="Roboto,sans-serif" font-size="14" lengthAdjust="spacing" textLength="134" x="13" y="79.7999">+broadcastDirection()</text><!--MD5=[8eaccf46e44cd9185ecd868a6bcfa3ae]
|
|
class ListenerClass--><rect codeLine="29" fill="#F8F8F8" filter="url(#f1n3w915scn4a5)" height="88.3998" id="ListenerClass" style="stroke:#383838;stroke-width:1.5;" width="114" x="286" y="7"/><ellipse cx="300" cy="22" fill="#C2C2C2" rx="10" ry="10" style="stroke:#383838;stroke-width:1.0;"/><path d="M300.625,25.0469 Q301.2813,25.0469 301.75,24.8906 Q302.2188,24.7188 302.4063,24.5313 Q302.6094,24.3438 302.8125,24.1875 Q303.0156,24.0313 303.2031,24.0313 Q303.4688,24.0313 303.6719,24.2344 Q303.8906,24.4375 303.8906,24.7188 Q303.8906,25.3281 302.9375,25.8906 Q301.9844,26.4531 300.5781,26.4531 Q298.7969,26.4531 297.625,25.4063 Q296.4688,24.3594 296.4688,22.7656 L296.4688,21.8438 Q296.4688,20.1563 297.5469,19.0313 Q298.6406,17.8906 300.2656,17.8906 Q301.25,17.8906 302.2656,18.375 L302.3906,18.4219 Q302.6406,18.0938 302.9844,18.0938 Q303.3906,18.0938 303.5313,18.3281 Q303.6875,18.5625 303.6875,19.0156 L303.6875,20.1875 Q303.6875,21.1094 302.9844,21.1094 Q302.7344,21.1094 302.5625,20.9688 Q302.4063,20.8281 302.375,20.7188 Q302.3438,20.5938 302.2969,20.375 Q302.2188,19.9531 301.7813,19.7031 Q301.3594,19.4375 301,19.375 Q300.6406,19.2969 300.3281,19.2969 Q299.2656,19.2969 298.5625,20.0156 Q297.8594,20.7344 297.8594,21.8438 L297.8594,22.7344 Q297.8594,23.7813 298.6094,24.4219 Q299.3594,25.0469 300.625,25.0469 Z " fill="#000000"/><text fill="#000000" font-family="Roboto,sans-serif" font-size="14" lengthAdjust="spacing" textLength="84" x="313" y="27.6">ListenerClass</text><line style="stroke:#383838;stroke-width:1.5;" x1="287" x2="399" y1="37" y2="37"/><text fill="#000000" font-family="Roboto,sans-serif" font-size="14" lengthAdjust="spacing" textLength="71" x="292" y="54.9999">+method1()</text><text fill="#000000" font-family="Roboto,sans-serif" font-size="14" lengthAdjust="spacing" textLength="12" x="292" y="71.7999">...</text><text fill="#000000" font-family="Roboto,sans-serif" font-size="14" lengthAdjust="spacing" textLength="73" x="292" y="88.5998">+methodN()</text><!--MD5=[ac22afb7b8a06c286e18092d44f495e3]
|
|
link Topic to ListenerClass--><path codeLine="36" d="M238.13,51 C238.13,51 262.01,51 272.72,51 " fill="none" id="Topic-ListenerClass" style="stroke:#383838;stroke-width:1.0;"/><polygon fill="#383838" points="285.92,51,276.92,47,280.92,51,276.92,55,285.92,51" style="stroke:#383838;stroke-width:1.0;"/><line style="stroke:#383838;stroke-width:1.0;" x1="280.92" x2="272.92" y1="51" y2="51"/><polygon fill="#FFFFFF" points="226.13,51,232.13,55,238.13,51,232.13,47,226.13,51" style="stroke:#383838;stroke-width:1.0;"/><text fill="#000000" font-family="Roboto,sans-serif" font-size="14" lengthAdjust="spacing" textLength="8" x="265.8379" y="66.0506">1</text><!--MD5=[c1d22561c4e8be728dfd59033d5e7522]
|
|
@startuml
|
|
' https://plantuml-documentation.readthedocs.io/en/latest/formatting/all-skin-params.html
|
|
skinparam monochrome true
|
|
skinparam shadowing true
|
|
|
|
skinparam DefaultFontName "Roboto,sans-serif"
|
|
skinparam DefaultMonospacedFontName "Roboto Mono,monospace"
|
|
|
|
' https://material.io/design/typography/the-type-system.html
|
|
' Body 2
|
|
skinparam DefaultFontSize 14
|
|
skinparam DefaultTextAlignment center
|
|
skinparam NoteTextAlignment left
|
|
|
|
' default 1.5
|
|
skinparam ActivityBorderThickness 1
|
|
' default 2
|
|
skinparam PartitionBorderThickness 1.5
|
|
|
|
skinparam classAttributeIconSize 0
|
|
hide empty fields
|
|
hide empty methods
|
|
left to right direction
|
|
|
|
' Define the objects in the diagram
|
|
class "com.intellij.util.messages.Topic" as Topic {
|
|
+displayName()
|
|
+broadcastDirection()
|
|
}
|
|
class ListenerClass {
|
|
+method1()
|
|
{method} ...
|
|
+methodN()
|
|
}
|
|
|
|
' Define the class relationships
|
|
Topic o- -> "1 " ListenerClass
|
|
@enduml
|
|
|
|
@startuml
|
|
skinparam monochrome true
|
|
skinparam shadowing true
|
|
|
|
skinparam DefaultFontName "Roboto,sans-serif"
|
|
skinparam DefaultMonospacedFontName "Roboto Mono,monospace"
|
|
|
|
skinparam DefaultFontSize 14
|
|
skinparam DefaultTextAlignment center
|
|
skinparam NoteTextAlignment left
|
|
|
|
skinparam ActivityBorderThickness 1
|
|
skinparam PartitionBorderThickness 1.5
|
|
|
|
skinparam classAttributeIconSize 0
|
|
hide empty fields
|
|
hide empty methods
|
|
left to right direction
|
|
|
|
class "com.intellij.util.messages.Topic" as Topic {
|
|
+displayName()
|
|
+broadcastDirection()
|
|
}
|
|
class ListenerClass {
|
|
+method1()
|
|
{method} ...
|
|
+methodN()
|
|
}
|
|
|
|
Topic o- -> "1 " ListenerClass
|
|
@enduml
|
|
|
|
PlantUML version 1.2021.8(Sat Jun 26 08:20:59 GMT 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> |