MCPcopy Create free account
hub / github.com/google/gapid / loadIcon

Method loadIcon

gapic/src/main/com/google/gapid/widgets/Theme.java:346–355  ·  view source on GitHub ↗
(Method method)

Source from the content-addressed store, hash-verified

344 }
345
346 private boolean loadIcon(Method method) {
347 Icon icon = method.getDeclaredAnnotation(Icon.class);
348 if (icon != null) {
349 int color = icon.color();
350 Image image = (color >= 0) ? loadImage(icon.file(), color) : loadImage(icon.file());
351 resources.put(method.getName(), image);
352 return true;
353 }
354 return false;
355 }
356
357 private boolean loadIconSequence(Method method) {
358 IconSequence seq = method.getDeclaredAnnotation(IconSequence.class);

Callers 1

loadResourceMethod · 0.95

Calls 5

loadImageMethod · 0.95
colorMethod · 0.80
fileMethod · 0.45
putMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected