Changeset 4960 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
- Timestamp:
- 2012-02-16T20:58:54+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r4936 r4960 27 27 import org.openstreetmap.josm.io.MirroredInputStream; 28 28 import org.openstreetmap.josm.tools.ImageProvider; 29 import org.openstreetmap.josm.tools.ImageProvider.SanitizeMode;30 29 31 30 /** … … 89 88 90 89 public static ImageIcon getIcon(IconReference ref, int width, int height) { 91 return getIcon(ref, width, height, SanitizeMode.OFF);92 }93 94 public static ImageIcon getIcon(IconReference ref, int width, int height, SanitizeMode sanitize) {95 90 final String namespace = ref.source.getPrefName(); 96 91 ImageIcon i = new ImageProvider(ref.iconName) … … 100 95 .setWidth(width) 101 96 .setHeight(height) 102 .setSanitize(sanitize)103 97 .setOptional(true).get(); 104 98 if(i == null) … … 108 102 } 109 103 return i; 110 }111 112 public static ImageIcon getNoIcon_Icon(StyleSource source) {113 return getNoIcon_Icon(source, SanitizeMode.OFF);114 104 } 115 105 … … 122 112 * can be null if the defaults are turned off by user 123 113 */ 124 public static ImageIcon getNoIcon_Icon(StyleSource source , SanitizeMode sanitize) {114 public static ImageIcon getNoIcon_Icon(StyleSource source) { 125 115 return new ImageProvider("misc/no_icon.png") 126 116 .setDirs(getIconSourceDirs(source)) 127 117 .setId("mappaint."+source.getPrefName()) 128 118 .setArchive(source.zipIcons) 129 .setSanitize(sanitize)130 119 .setOptional(true).get(); 131 120 }
Note:
See TracChangeset
for help on using the changeset viewer.