Ignore:
Timestamp:
2017-04-09T16:12:33+02:00 (7 years ago)
Author:
bastiK
Message:

see #7427 - add javadoc for getNativeProjections() + move it one class up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r11862 r11868  
    3030import java.util.ArrayList;
    3131import java.util.Arrays;
     32import java.util.Collection;
    3233import java.util.Collections;
    3334import java.util.Comparator;
     
    227228
    228229    /**
     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    /**
    229241     * Creates and returns a new {@link TileSource} instance depending on {@link #info} specified in the constructor.
    230242     *
     
    349361        JPanel panel = (JPanel) super.getInfoComponent();
    350362        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        }
    351367        EastNorth offset = getDisplaySettings().getDisplacement();
    352368        if (offset.distanceSq(0, 0) > 1e-10) {
Note: See TracChangeset for help on using the changeset viewer.