(Method method)
| 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); |