forked from JetBrains/intellij-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicon-loading-stat.puml
55 lines (47 loc) · 1.01 KB
/
icon-loading-stat.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@startuml
!include jb-plantuml-theme.puml
:find-icon;
note right
Externally called method ""IconLoader.findIcon""
end note
:find-icon-load;
note right
Internally called method ""CachedImageIcon.loadImage"".
Called numerous times per ""CachedImageIcon"" instance — to compute a new scale.
end note
if (Is SVG) then (yes)
:svg-load]
else (no)
:png-load]
endif
if (Is Cached) then (yes)
else (no)
if (Is resourceClass Provided) then (yes)
:load-from-resource]
if (Is prebuiltCacheId Provided) then (yes)
:svg-prebuilt]
:Return Image;
detach;
else
if (Is Resource Exist) then (yes)
else (no)
' That's why load-from-resource maybe not equal to sum of ""svg-load"" and ""png-load""
:Return ""null"";
detach;
endif
endif
else (no)
:load-from-url]
endif
if (Is SVG) then (yes)
:svg-cache-read]
if (Is Cached) then (yes)
else (no)
:svg-decode]
endif
else (no)
:png-decode]
endif
endif
:Return Image;
@enduml