Changeset 3365 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2010-07-07T19:18:19+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r2990 r3365 88 88 /** 89 89 * Like {@link #get(String)}, but does not throw and return <code>null</code> in case of nothing 90 * is found. Use this, if the image to retrieve is optional. 90 * is found. Use this, if the image to retrieve is optional. Nevertheless a warning will 91 * be printed on the console if the image could not be found. 91 92 */ 92 93 public static ImageIcon getIfAvailable(Collection<String> dirs, String id, String subdir, String name) { … … 94 95 } 95 96 97 /** 98 * The full path of the image is either a url (starting with http://) 99 * or something like 100 * dirs.get(i)+"/"+subdir+"/"+name+".png". 101 * @param dirs Directories to look. 102 * @param id An id used for caching. Id is not used for cache if name starts with http://. (URL is unique anyway.) 103 * @param subdir Subdirectory the image lies in. 104 * @param name The name of the image. If it contains no '.', a png extension is added. 105 * @param archive A zip file where the image is located. 106 */ 96 107 public static ImageIcon getIfAvailable(Collection<String> dirs, String id, String subdir, String name, File archive) { 97 108 if (name == null)
Note:
See TracChangeset
for help on using the changeset viewer.