Changeset 33973 in osm for applications/viewer


Ignore:
Timestamp:
2018-01-02T14:27:50+01:00 (7 years ago)
Author:
stoecker
Message:

see #josm15713 - rename dirty mode

Location:
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java

    r33971 r33973  
    274274     * @return <code>true</code> if it supports "/dirty" mode (tile re-rendering)
    275275     */
    276     default boolean isDirtyMode() {
     276    default boolean isModTileFeatures() {
    277277        return false;
    278278    }
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTMSTileSource.java

    r33971 r33973  
    3131    private final Map<String, Set<String>> noTileChecksums;
    3232    private final Map<String, String> metadataHeaders;
    33     protected boolean dirtyMode;
     33    protected boolean modTileFeatures;
    3434    protected int tileSize;
    3535
     
    4949        this.noTileChecksums = info.getNoTileChecksums();
    5050        this.metadataHeaders = info.getMetadataHeaders();
    51         this.dirtyMode = info.isDirtyMode();
     51        this.modTileFeatures = info.isModTileFeatures();
    5252        this.tileSize = info.getTileSize();
    5353    }
     
    239239
    240240    @Override
    241     public boolean isDirtyMode() {
    242         return dirtyMode;
     241    public boolean isModTileFeatures() {
     242        return modTileFeatures;
    243243    }
    244244
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/OsmTileSource.java

    r33971 r33973  
    2727        public Mapnik() {
    2828            super("Mapnik", PATTERN, "MAPNIK");
    29             dirtyMode = true;
     29            modTileFeatures = true;
    3030        }
    3131
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TileSourceInfo.java

    r33971 r33973  
    4141    protected Map<String, String> metadataHeaders;
    4242
    43     /** supports "/dirty" mode (tile re-rendering) */
    44     protected boolean dirtyMode;
     43    /** supports "/status" and "/dirty" mode (tile re-rendering) */
     44    protected boolean modTileFeatures;
    4545
    4646    /**
     
    193193
    194194    /**
    195      * Determines if this imagery supports "/dirty" mode (tile re-rendering).
    196      * @return <code>true</code> if it supports "/dirty" mode (tile re-rendering)
    197      */
    198     public final boolean isDirtyMode() {
    199         return dirtyMode;
    200     }
    201 
    202     /**
    203      * Sets whether this imagery supports "/dirty" mode (tile re-rendering).
    204      * @param dirtyMode <code>true</code> if it supports "/dirty" mode (tile re-rendering)
    205      */
    206     public final void setDirtyMode(boolean dirtyMode) {
    207         this.dirtyMode = dirtyMode;
     195     * Determines if this imagery supports "/status" and "/dirty" mode (tile re-rendering).
     196     * @return <code>true</code> if it supports "/status" and "/dirty" mode (tile re-rendering)
     197     */
     198    public final boolean isModTileFeatures() {
     199        return modTileFeatures;
     200    }
     201
     202    /**
     203     * Sets whether this imagery supports "/status" and "/dirty" mode (tile re-rendering).
     204     * @param modTileFeatures <code>true</code> if it supports "/status" and "/dirty" mode (tile re-rendering)
     205     */
     206    public final void setModTileFeatures(boolean modTileFeatures) {
     207        this.modTileFeatures = modTileFeatures;
    208208    }
    209209}
Note: See TracChangeset for help on using the changeset viewer.