Changeset 11868 in josm for trunk/src/org
- Timestamp:
- 2017-04-09T16:12:33+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r11862 r11868 30 30 import java.util.ArrayList; 31 31 import java.util.Arrays; 32 import java.util.Collection; 32 33 import java.util.Collections; 33 34 import java.util.Comparator; … … 227 228 228 229 /** 230 * Get projections this imagery layer supports natively. 231 * 232 * For example projection of tiles that are downloaded from a server. Layer 233 * may support even more projections (by reprojecting the tiles), but with a 234 * certain loss in image quality and performance. 235 * @return projections this imagery layer supports natively; null if 236 * layer is projection agnostic. 237 */ 238 public abstract Collection<String> getNativeProjections(); 239 240 /** 229 241 * Creates and returns a new {@link TileSource} instance depending on {@link #info} specified in the constructor. 230 242 * … … 349 361 JPanel panel = (JPanel) super.getInfoComponent(); 350 362 List<List<String>> content = new ArrayList<>(); 363 Collection<String> nativeProjections = getNativeProjections(); 364 if (nativeProjections != null) { 365 content.add(Arrays.asList(tr("Native projections"), Utils.join(", ", getNativeProjections()))); 366 } 351 367 EastNorth offset = getDisplaySettings().getDisplacement(); 352 368 if (offset.distanceSq(0, 0) > 1e-10) { -
trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java
r11863 r11868 12 12 import java.util.ArrayList; 13 13 import java.util.Arrays; 14 import java.util.Collection;15 14 import java.util.List; 16 15 import java.util.Locale; … … 151 150 } 152 151 153 public abstract Collection<String> getNativeProjections();154 155 152 @Override 156 153 public Object getInfoComponent() { … … 172 169 content.add(Arrays.asList(tr("Description"), info.getDescription())); 173 170 } 174 content.add(Arrays.asList(tr("Native projections"), Utils.join(", ", getNativeProjections())));175 171 for (List<String> entry: content) { 176 172 panel.add(new JLabel(entry.get(0) + ':'), GBC.std());
Note:
See TracChangeset
for help on using the changeset viewer.